/* ============================= */
/* PROFESSIONAL LOGIN PAGE STYLE */
/* ============================= */

/* Reset */
* {
    box-sizing: border-box;
}

/* Background */
.login-page {
    margin: 0;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;

    background:
        linear-gradient(rgba(12, 15, 25, 0.75), rgba(12, 15, 25, 0.75)),
        url('images/loginbg.jpg') no-repeat center center/cover;
}

/* Card Container */
.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Login Card */
.login-page .auth-card {
    width: 100%;
    max-width: 420px;
    padding: 45px 40px;
    border-radius: 18px;
    background: rgba(20, 20, 30, 0.65);
    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    color: #ffffff;
    text-align: center;

    animation: fadeIn 0.4s ease-in-out;
}

/* Logo */
.auth-logo {
    width: 110px;
    margin-bottom: 20px;
}

/* Headings */
.login-page h2 {
    margin-bottom: 8px;
    font-weight: 600;
}

.login-page p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 25px;
}

/* Inputs */
.login-page .auth-card input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
    transition: 0.3s ease;
}

.login-page .auth-card input:focus {
    border-color: #3b82f6;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

/* Login Button */
.login-page .btn-primary {
    width: 100%;
    padding: 14px;
    margin-top: 18px;
    border-radius: 10px;
    border: none;

    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37,99,235,0.4);
}

/* Error Message */
.auth-message {
    color: #ff4d4d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Switch Link */
.switch-text {
    margin-top: 25px;
    font-size: 14px;
}

.switch-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.switch-text a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .login-page .auth-card {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .login-page h2 {
        font-size: 20px;
    }

    .login-page p {
        font-size: 13px;
    }

    .login-page .auth-card input {
        padding: 12px;
        font-size: 13px;
    }

    .login-page .btn-primary {
        padding: 12px;
        font-size: 14px;
    }
}

/* ============================== */
/* AUTH MESSAGE BASE STYLE */
/* ============================== */

.auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeAlert 0.3s ease-in-out;
}

/* ============================== */
/* ERROR MESSAGE (RED) */
/* ============================== */

.auth-message.error {
    background: rgba(255, 77, 77, 0.08);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.35);
}

/* ============================== */
/* INFO MESSAGE (BLUE) */
/* ============================== */

.auth-message.info {
    background: rgba(59,130,246,0.08);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.35);
}

/* ============================== */
/* SUCCESS MESSAGE (GREEN) */
/* ============================== */

.auth-message.success {
    background: rgba(34,197,94,0.08);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.35);
}

/* Smooth appearance animation */
@keyframes fadeAlert {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.password-field{
    position: relative;
    width: 100%;
}

.password-field input{
    width: 100%;
    padding: 12px 42px 12px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.toggle-password{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #888;
    transition: all 0.25s ease;
    padding: 5px;
    border-radius: 50%;
}

/* Hover highlight */
.toggle-password:hover{
    color: #0d6efd;
    background: rgba(13,110,253,0.1);
    transform: translateY(-50%) scale(1.1);
}