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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: rgb(249, 250, 251);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: transparent;
    padding: 50px 40px;
    width: 100%;
    text-align: center;
}

.logo {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.logo img {
    max-width: 240px;
    height: auto;
}

.login-title {
    color: #1e293b;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.forgot-subtitle {
    color: #64748b;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.form-group {
    text-align: left;
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #1e3a5f;
    width: 46px;
    height: 46px;
    border-radius: 8px 0px 0 8px;
    z-index: 1;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 68px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #64748b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
}

.btn-login {
    width: 90%;
    padding: 16px;
    background-color: #1e3a5f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-login:hover {
    background-color: #152d4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

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

.back-to-login {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.back-to-login a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-login a:hover {
    color: #1e3a5f;
}

.back-to-login svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .login-box {
        padding: 40px 30px;
    }

    .logo img {
        max-width: 160px;
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .forgot-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .input-wrapper input {
        padding: 13px 16px 13px 65px;
        font-size: 14px;
    }

    .input-icon {
        width: 38px;
        height: 38px;
    }

    .btn-login {
        padding: 15px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .login-box {
        padding: 35px 25px;
    }

    .logo {
        margin-bottom: 30px;
    }

    .logo img {
        max-width: 140px;
    }

    .login-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .forgot-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .login-form {
        gap: 14px;
    }

    .input-wrapper input {
        padding: 12px 16px 12px 62px;
        font-size: 14px;
        border-radius: 7px;
    }

    .input-icon {
        width: 36px;
        height: 36px;
        left: 14px;
        border-radius: 5px;
    }

    .input-icon svg {
        width: 18px;
        height: 18px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
        border-radius: 7px;
    }

    .back-to-login a {
        font-size: 13px;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .login-box {
        padding: 30px 20px;
    }

    .logo img {
        max-width: 120px;
    }

    .login-title {
        font-size: 17px;
    }

    .forgot-subtitle {
        font-size: 12px;
    }

    .input-wrapper input {
        padding: 11px 14px 11px 58px;
        font-size: 13px;
    }

    .input-icon {
        width: 34px;
        height: 34px;
        left: 12px;
    }

    .btn-login {
        padding: 13px;
        font-size: 14px;
    }
}
