/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    position: relative;
}

/* Header Section with Blue Background */
.login-header-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-clino {
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.logo-tag {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    letter-spacing: 2px;
    font-weight: 500;
}

.clinotag-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    font-weight: 400;
}

/* Role Tabs */
.role-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    max-width: 300px;
    margin: 0 auto;
}

.role-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.role-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.role-tab.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Form Section with White Background */
.login-body {
    padding: 40px 30px;
    background: white;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.login-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-wrapper.focused .login-input {
    border-color: #007bff;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #9CA3AF;
    font-size: 18px;
    pointer-events: none;
}

.input-wrapper.focused .input-icon {
    color: #007bff;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #007bff;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

.forgot-password-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.forgot-password-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.validation-summary {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.field-validation {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive Design */
/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .login-container {
        padding: 10px;
    }

    .login-card {
        border-radius: 15px;
        max-width: 100%;
    }

    .login-header-section {
        padding: 25px 20px 20px;
    }

    .login-body {
        padding: 25px 20px;
    }

    .clinotag-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .logo-clino,
    .logo-tag {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 8px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .role-tabs {
        max-width: 100%;
    }

    .role-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .form-label {
        font-size: 13px;
    }

    .login-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px 14px 45px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .login-card {
        max-width: 420px;
    }

    .login-header-section {
        padding: 35px 25px 25px;
    }

    .login-body {
        padding: 35px 25px;
    }

    .clinotag-title {
        font-size: 32px;
    }

    .logo-clino,
    .logo-tag {
        font-size: 26px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .login-card {
        max-width: 450px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .login-container {
        padding: 10px;
    }

    .login-header-section {
        padding: 20px 25px 15px;
    }

    .login-body {
        padding: 20px 25px;
    }

    .clinotag-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .header-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #E5E7EB;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #E5E7EB;
    border-radius: 0 0 15px 15px;
}

.close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #374151;
}
