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

:root {
    --brand: #0088A8;
    --brand-d: #006880;
    --brand-l: #00b4d8;
    --glow: rgba(0, 136, 168, 0.25);
    --white: #ffffff;
    --text: #1a2733;
    --text-muted: #64748b;
    --border: rgba(0, 136, 168, 0.14);
    --surface: rgba(255, 255, 255, 0.72);
    --shadow-sm: 0 6px 20px rgba(0, 136, 168, 0.08);
    --shadow-md: 0 14px 40px rgba(0, 136, 168, 0.14);
    --shadow-lg: 0 24px 70px rgba(0, 136, 168, 0.18);
    --error: #e63946;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: auto;
    position: relative;
    background:
        linear-gradient(135deg,
            rgba(0, 104, 128, 0.08),
            rgba(0, 180, 216, 0.12)),
        #f4fafc;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    animation: floatOrb 14s ease-in-out infinite alternate;
}

body::before {
    width: 430px;
    height: 430px;
    background: rgba(0, 136, 168, 0.18);
    top: -120px;
    left: -100px;
}

body::after {
    width: 360px;
    height: 360px;
    background: rgba(0, 180, 216, 0.16);
    bottom: -100px;
    right: -80px;
    animation-delay: -6s;
}

@keyframes floatOrb {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 40px) scale(1.08);
    }
}

.card-wrap {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 430px;
    animation: cardEnter 0.8s var(--bounce) both;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    background: var(--surface);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 44px 40px 36px;
    box-shadow:
        var(--shadow-lg),
        0 4px 20px rgba(255, 255, 255, 0.35) inset;
}

.brand-header {
    text-align: center;
    margin-bottom: 34px;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.brand-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 136, 168, 0.18));
}

.brand-name {
    font-family: "Roboto", sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    letter-spacing: -0.5px;
}

.brand-name .career {
    color: #111111;
}

.brand-name .guide {
    color: var(--brand);
}

.brand-sub {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.section-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 14px;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.input-field:hover {
    border-color: rgba(0, 136, 168, 0.25);
}

.input-field:focus-within {
    border-color: var(--brand);
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(0, 136, 168, 0.12);
}

.input-field .material-icons {
    font-size: 18px;
    color: rgba(0, 136, 168, 0.55);
    margin-right: 10px;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.input-field:focus-within .material-icons {
    color: var(--brand);
}

.input-field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 15px 0;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
}

.input-field input::placeholder {
    color: #93a4b2;
}

.eye-toggle {
    cursor: pointer;
    color: rgba(0, 136, 168, 0.45);
    font-size: 18px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;

    user-select: none;
}

.eye-toggle:hover {
    color: var(--brand);
    transform: scale(1.08);
}

.forgot-row {
    text-align: right;
    margin-bottom: 22px;
}

.forgot {
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: var(--brand);
    transition: color 0.2s ease;
}

.forgot:hover {
    color: var(--brand-d);
}

.btn-login {
    width: 100%;
    border: none;
    outline: none;
    border-radius: 50px;
    padding: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        transform 0.25s var(--bounce),
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.btn-primary {
    background:
        linear-gradient(135deg,
            var(--brand),
            var(--brand-l));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 136, 168, 0.28);
    margin-bottom: 12px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 136, 168, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(0, 136, 168, 0.05);
    color: var(--brand);
    border: 1px solid rgba(0, 136, 168, 0.14);
}

.btn-secondary:hover {
    background: rgba(0, 136, 168, 0.1);
    color: var(--brand-d);
    transform: translateY(-2px);
}

a.btn-login {
    display: block;
    text-align: center;
    text-decoration: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
}

.divider span {
    flex: 1;
    height: 1px;
    background: rgba(0, 136, 168, 0.12);
}

.divider p {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.social-login {
    display: flex;
    justify-content: center;
}

.google-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 136, 168, 0.12);
    border-radius: 50px;
    padding: 11px 28px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s var(--bounce),
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.google-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 136, 168, 0.16);
    color: var(--brand);
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 34, 45, 0.94);
    color: #ffffff;
    border: 1px solid rgba(0, 136, 168, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border-color: rgba(230, 57, 70, 0.45);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 520px) {

    body {
        padding: 20px;
    }

    .login-box {
        padding: 36px 24px 30px;
        border-radius: 24px;
    }

    .brand-name {
        font-size: 24px;
    }

    .section-title {
        font-size: 15px;
    }

    .btn-login {
        padding: 13px;
    }
}

.success-box {
    background: rgba(0, 200, 120, 0.12);
    border: 1px solid rgba(0, 200, 120, 0.4);
    color: #007a45;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.input-field input[type="email"] {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 15px 0;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
}

.error-box {
    color: #d32f2f;
    font-size: 14px;
    margin-bottom: 15px;
}

.google-btn-custom {
    text-decoration: none !important;
    color: #0088A8 !important;
    font-weight: 700;
}