Newer
Older
teacher-diary / src / main / resources / static / css / auth.css
/* =====================================================
   Auth Pages Styles - Teacher Diary
   ===================================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
}

body.auth-body {
    min-height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--primary-color);
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 12px 0 0 0;
}

/* Title */
.auth-title {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.auth-title p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

/* Form */
.auth-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.auth-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Button */
.btn-auth {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Links */
.auth-links {
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

/* Checkbox */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

/* Info box */
.auth-info {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.auth-info .info-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Alert fix */
.alert {
    font-size: 14px;
    margin-bottom: 20px;
}