/* ===============================
   AUTH PAGES - STANDARD BASELINE
   Used for:
   login.html
   signup.html
   password_reset.html
   password_reset_done.html
   password_reset_confirm.html
   password_reset_complete.html
================================= */

* {
    box-sizing: border-box;
}

/* Page Layout */
body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background-color: #f4f6f9;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
}

/* Card Layout (Border Style) */
.login-card {

    width: 100%;

    max-width: 480px;

    background: #ffffff;

    padding: 25px 45px 40px 45px;  /* top right bottom left */  

    border-radius: 10px;

    border: 2.4px solid #00897b;

    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Logo Section */
.logo {

    text-align: center;

    margin-bottom: 20px;
}

.logo h1 {

    font-size: 30px;          /* bigger for logo feel */

    font-weight: 700;         /* strong but not too heavy */

    color: #00897b;           /* your clinic theme color */

    letter-spacing: 0.5px;    /* slightly premium look */

    margin: 0;

}

/* Heading */
.login-card h2 {

    text-align: center;

    margin-bottom: 25px;

    font-size: 22px;

    font-weight: 500;

    color: #1f2937;
}

/* Paragraph */
.login-card p {

    text-align: center;

    font-size: 18px;

    line-height: 1.6;

    color: #171818;

    margin-bottom: 20px;
}

/* Form Group */
.form-group {
    margin-bottom: 18px;
}

/* Labels */
label {

    display: block;

    font-weight: 500;

    margin-bottom: 6px;

    font-size: 14px;

    color: #374151;
}

/* Required */
.required {
    color: #b00020;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"] {

    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d1d5db;

    border-radius: 6px;

    font-size: 14px;

    background: #ffffff;

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

/* Focus */
input:focus {

    outline: none;

    border-color: #00897b;

    box-shadow: 0 0 0 2px rgba(0,137,123,0.15);
}

/* Errors */
.error {

    color: #b00020;

    font-size: 13px;

    margin-top: 5px;
}

.non-field-error {

    color: #b00020;

    text-align: center;

    margin-bottom: 15px;

    font-size: 14px;
}

.message-wrapper {
    margin: 1.5rem 0 2rem 0;
    display: flex;
    justify-content: center;
}

/* Base Alert Style */
.alert {
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-size: 0.95rem;        /* slightly reduced */
    font-weight: 500;          /* softer than bold */
    text-align: center;
    border: 1px solid transparent;
    min-width: 320px;
    max-width: 520px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Success Style */
.alert.success {
    background-color: #ecfdf3;     /* softer green background */
    color: #166534;                /* professional deep green */
    border: 1px solid #bbf7d0;     /* subtle border */
}

/* Options Row */
.options {

    display: flex;

    justify-content: flex-end;

    margin-bottom: 22px;

    font-size: 14px;
}

.options a {

    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.options a:hover {
    text-decoration: none;
}

/* Buttons */
.btn-login {

    width: 100%;
    padding: 12px;
    background-color: #00897b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;

    transition: all 0.2s ease;

    letter-spacing: 0.5px;
}

.btn-login:hover {
    background-color: #00796b;
}

.btn-login:active {
    transform: scale(0.98);
}

/* Footer Links */
.signup-link {

    text-align: center;

    margin-top: 25px;

    font-size: 14px;

    color: #4b5563;
}

.signup-link a {

    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: none;
}

/* Success Icon */
.success-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 20px auto;

    background-color: #16a34a;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;
}

.success-icon::before {

    content: "✓";

    color: #ffffff;

    font-size: 32px;

    font-weight: bold;
}

.pwd-success-title {
    text-align: center;
    font-weight: 500;
}

.success-img {
    text-align: center;
    margin: 25px 0;
}

.success-img .material-icons {
    font-size: 70px;        /* makes icon big */
    color: #16a34a;         /* professional green */
}

/* =================================
   TABLET (768px–1024px)
================================= */
@media (min-width:768px) and (max-width:1024px){

    body{
        padding:30px;
    }

    .login-card{
        max-width:420px;
        padding:30px 35px 38px 35px;
    }

    .logo h1{
        font-size:28px;
    }

}

/* =================================
   MOBILE (≤767px)
================================= */
@media (max-width: 767px){

    body{
        padding:20px;
        display:flex;
        justify-content:center;
        align-items:center;   /* keep vertical center */
        min-height:100vh;
    }

    .login-card{
        max-width:100%;
        padding:28px 22px 32px 22px;
        border-width:2px;
    }

    .logo h1{
        font-size:26px;
    }

    .login-card h2{
        font-size:20px;
    }

    .login-card p{
        font-size:16px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"]{
        font-size:15px;
        padding:12px;
    }

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

    .alert{
        min-width:auto;
        width:100%;
        font-size:14px;
    }

}