
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    background-color: #f5f7fa;
}

.auth-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(2, 13, 31, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

/* The logo image has a black background, so it sits on a black pill */
.auth-logo-wrap {
    display: inline-block;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    max-width: 100%;
}

.auth-logo {
    display: block;
    height: 70px;
    width: auto;
    max-width: 100%;
}

.auth-header h1 {
    color: #020d1f;
    font-family: 'Overpass', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    color: #6b7480;
    font-size: 16px;
}

.social-login { margin-bottom: 25px; }

.btn-social-login {
    width: 100%;
    padding: 12px 15px;
    border-radius: 7px;
    border: 1px solid #e0e0e0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

.btn-social-login:hover { background-color: #f7f7f7; }

.btn-social-login img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #6b7480;
}

.divider:before,
.divider:after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span { padding: 0 10px; font-size: 14px; }

.auth-form { margin-bottom: 25px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #020d1f;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #009899;
    box-shadow: 0 0 0 3px rgba(0, 152, 153, 0.15);
    outline: none;
}

/* Paths are relative to this CSS file (assets/) */
#email-group input {
    background-image: url('../img/email.svg');
    background-size: 23px 23px;
    background-position: 10px 10px;
    background-repeat: no-repeat;
    padding-left: 40px;
}

#password-group input {
    background-image: url('../img/lock.svg');
    background-size: 23px 23px;
    background-position: 10px 10px;
    background-repeat: no-repeat;
    padding-left: 40px;
}

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

.password-wrapper input { width: 100%; padding-right: 40px; }

.toggle-password {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #666;
    padding: 4px;
}

.toggle-password:hover { color: #020d1f; }

.password-warning {
    display: block;
    color: #d9534f;
    font-size: 1em;
    margin-top: 4px;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #009899;
    font-size: 14px;
}

.forgot-password:hover { text-decoration: underline; cursor: pointer; }

.sent-link-text {
    display: none;
    background-color: rgb(138, 231, 138);
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #009899;
    color: white;
    border: none;
    border-radius: 7px;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover { background-color: #00c5bb; }

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 13, 31, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.close-modal {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #6b7480;
}

.modal-title {
    color: #020d1f;
    font-family: 'Overpass', sans-serif;
    margin-bottom: 15px;
    font-size: 22px;
}

.modal-message {
    color: #6b7480;
    margin-bottom: 20px;
    font-size: 16px;
}

.btn-modal {
    padding: 10px 30px;
    background-color: #009899;
    color: white;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
}

.btn-modal:hover { background-color: #00c5bb; }

/* Footer link inside .lower-footer */
.lower-footer { gap: 18px; flex-wrap: wrap; }
.lower-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }

@media only screen and (max-width: 768px) {
    .auth-card { padding: 30px 20px; }
    .auth-container { padding: 20px; }
}