/**
 * Disaster Data Collection System
 * Login Page
 */


/* =========================================================
   Login Wrapper
   ========================================================= */

.ddcs-login-wrapper {

    width: 100%;

    min-height: 75vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 20px;

    box-sizing: border-box;
}


/* =========================================================
   Login Card
   ========================================================= */

.ddcs-login-card {

    width: 100%;

    max-width: 450px;

    background: #ffffff;

    border-radius: 12px;

    padding: 35px;

    box-sizing: border-box;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.12);

    border: 1px solid #e5e7eb;
}


/* =========================================================
   Header
   ========================================================= */

.ddcs-login-header {

    text-align: center;

    margin-bottom: 28px;
}


.ddcs-login-icon {

    width: 65px;

    height: 65px;

    margin: 0 auto 15px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e8f2f8;

    font-size: 30px;
}


.ddcs-login-header h2 {

    margin: 0 0 10px;

    color: #12395b;

    font-size: 25px;

    font-weight: 700;

    line-height: 1.3;
}


.ddcs-login-header p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   Form
   ========================================================= */

.ddcs-form-group {

    margin-bottom: 20px;
}


.ddcs-form-group label {

    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 14px;

    font-weight: 600;
}


.ddcs-form-group input[type="text"],
.ddcs-form-group input[type="password"] {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d1d5db;

    border-radius: 7px;

    background: #ffffff;

    color: #111827;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.ddcs-form-group input[type="text"]:focus,
.ddcs-form-group input[type="password"]:focus {

    outline: none;

    border-color: #0069a8;

    box-shadow:
        0 0 0 3px rgba(0, 105, 168, 0.12);
}


/* =========================================================
   Remember Me
   ========================================================= */

.ddcs-remember {

    margin: 5px 0 22px;
}


.ddcs-remember label {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    color: #4b5563;

    font-size: 14px;
}


.ddcs-remember input {

    width: 16px;

    height: 16px;

    cursor: pointer;
}


/* =========================================================
   Login Button
   ========================================================= */

.ddcs-login-button {

    display: flex;

    width: 100%;

    min-height: 48px;

    align-items: center;

    justify-content: center;

    padding: 12px 20px;

    box-sizing: border-box;

    border: none;

    border-radius: 7px;

    background: #0069a8;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}


.ddcs-login-button:hover {

    background: #005481;

    color: #ffffff;

    text-decoration: none;
}


.ddcs-login-button:active {

    transform: translateY(1px);
}


/* =========================================================
   Messages
   ========================================================= */

.ddcs-login-message {

    padding: 13px 15px;

    margin-bottom: 20px;

    border-radius: 7px;

    font-size: 14px;

    line-height: 1.5;
}


.ddcs-error {

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}


.ddcs-success {

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #166534;
}


/* =========================================================
   Footer
   ========================================================= */

.ddcs-login-footer {

    text-align: center;

    margin-top: 22px;
}


.ddcs-login-footer a {

    color: #0069a8;

    font-size: 14px;

    text-decoration: none;
}


.ddcs-login-footer a:hover {

    text-decoration: underline;
}


/* =========================================================
   Logout
   ========================================================= */

.ddcs-logout-link {

    display: block;

    margin-top: 18px;

    text-align: center;

    color: #6b7280;

    font-size: 14px;

    text-decoration: none;
}


.ddcs-logout-link:hover {

    color: #b91c1c;

    text-decoration: underline;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 600px) {

    .ddcs-login-wrapper {

        min-height: auto;

        padding: 25px 15px;
    }


    .ddcs-login-card {

        padding: 25px 20px;

        border-radius: 10px;
    }


    .ddcs-login-header h2 {

        font-size: 21px;
    }


    .ddcs-login-icon {

        width: 55px;

        height: 55px;

        font-size: 25px;
    }

}


/* =========================================================
   Very Small Screens
   ========================================================= */

@media (max-width: 360px) {

    .ddcs-login-card {

        padding: 20px 15px;
    }


    .ddcs-login-header h2 {

        font-size: 19px;
    }

}