:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --bg-color: #F0F4F8;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Soft blue gradient background with wavy feel, like the image */
    background-color: #f1f5fa;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'%3E%3Cpath fill='%23e0ecfa' fill-opacity='0.6' d='M0,256L48,261.3C96,267,192,277,288,272C384,267,480,245,576,234.7C672,224,768,224,864,250.7C960,277,1056,331,1152,330.7C1248,331,1344,277,1392,250.7L1440,224L1440,800L1392,800C1344,800,1248,800,1152,800C1056,800,960,800,864,800C768,800,672,800,576,800C480,800,384,800,288,800C192,800,96,800,48,800L0,800Z'%3E%3C/path%3E%3Cpath fill='%23d3e2f7' fill-opacity='0.5' d='M0,448L48,426.7C96,405,192,363,288,368C384,373,480,427,576,432C672,437,768,395,864,368C960,341,1056,331,1152,346.7C1248,363,1344,405,1392,426.7L1440,448L1440,800L1392,800C1344,800,1248,800,1152,800C1056,800,960,800,864,800C768,800,672,800,576,800C480,800,384,800,288,800C192,800,96,800,48,800L0,800Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.login-container {
    width: 100%;
    max-width: 580px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    background: var(--primary);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-icon .material-icons-round {
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Login Card Styles */
.login-card {
    background: var(--card-bg);
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-header p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #fff;
}

.input-icon {
    padding-left: 14px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon .material-icons-round {
    font-size: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 44px 14px 10px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
}

.input-group input::placeholder {
    color: #94A3B8;
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    outline: none;
}

.password-toggle:hover {
    color: var(--primary);
    background-color: #EFF6FF;
}

.password-toggle .material-icons-round {
    font-size: 20px;
}

/* Extracted Sub-link Containers */
.forgot-password-div {
    display: flex;
    justify-content: flex-end;
}

.forgot-password-div a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.forgot-password-div a:hover {
    text-decoration: underline;
}

.password-hint-div {
    text-align: right;
}

.password-hint-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #F8FAFC;
    border-color: #cbd5e1;
}

.btn-google {
    gap: 10px;
    color: #334155;
    font-weight: 600;
}

/* Agreement Section */
.agreement-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
}

.agreement-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.agreement-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.agreement-label a {
    color: var(--primary);
    font-weight: 600;
}

.agreement-label a:hover {
    text-decoration: underline;
}

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

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

.divider span {
    padding: 0 16px;
    color: #94A3B8;
}

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

.card-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.signup-link {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
}