/* Modern Admin Login Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 70%;
    animation-delay: 1s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 40%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.2;
    }
}

/* Main Container */
.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    direction: ltr;
}

/* Left Side - Branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #1E3A5F 0%, #2c5aa0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    order: 1;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.branding-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.branding-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-description h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.brand-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 400px;
}

.features-list {
    text-align: right;
    width: 100%;
    max-width: 450px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    direction: rtl;
    text-align: right;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.feature-item i {
    color: #FF6B35;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.feature-item span {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Right Side - Login Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    order: 2;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.login-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease;
    direction: rtl;
    text-align: right;
}

.alert-error {
    background: linear-gradient(135deg, #fee, #fdd);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 1rem;
    z-index: 2;
    color: #6c757d;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 3rem 1rem 4.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
    text-align: right;
    direction: rtl;
}

.form-control:focus {
    border-color: #FF6B35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-control:focus + .floating-label,
.form-control.error + .floating-label {
    color: #FF6B35;
}

.form-control.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.floating-label {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.floating-label.active {
    top: 0;
    font-size: 0.8rem;
    color: #FF6B35;
    font-weight: 500;
}

.password-toggle {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.custom-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-color: #FF6B35;
    color: white;
}

.checkmark i {
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox input:checked + .checkmark i {
    opacity: 1;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #495057;
}

.forgot-password {
    color: #FF6B35;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading {
    pointer-events: none;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loading {
    opacity: 1;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 20px;
}

.copyright {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideDown 0.3s ease;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

/* Responsive Design */

/* Large Laptops and Desktops (1440px+) */
@media (min-width: 1440px) {
    .login-container {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .login-branding {
        padding: 4rem;
    }
    
    .brand-description h2 {
        font-size: 2.2rem;
    }
    
    .brand-description p {
        font-size: 1.2rem;
        max-width: 500px;
    }
    
    .login-card {
        max-width: 500px;
        padding: 4rem;
    }
    
    .login-title {
        font-size: 2.2rem;
    }
    
    .form-control {
        padding: 1.2rem 3.5rem 1.2rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .login-btn {
        padding: 1.2rem;
        font-size: 1.2rem;
    }
}

/* Standard Laptops (1024px - 1439px) */
@media (min-width: 1025px) and (max-width: 1439px) {
    .login-branding {
        padding: 3rem;
    }
    
    .brand-description h2 {
        font-size: 1.9rem;
    }
    
    .brand-description p {
        font-size: 1.05rem;
        max-width: 420px;
    }
    
    .login-card {
        max-width: 480px;
        padding: 3.5rem;
    }
}

/* Tablets Portrait and Small Laptops (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .login-branding {
        min-height: 45vh;
        padding: 2.5rem;
        flex: none;
    }
    
    .login-form-section {
        flex: 1;
        min-height: 55vh;
        padding: 2rem;
    }
    
    .brand-description h2 {
        font-size: 1.7rem;
    }
    
    .brand-description p {
        font-size: 1rem;
        max-width: 400px;
    }
    
    .features-list {
        display: grid;
        gap: 1rem;
        margin-top: 2rem;
        justify-self: center;
        align-self: center;
    }
    
    .feature-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .login-card {
        max-width: 450px;
        padding: 2.5rem;
        margin: 0 auto;
    }
    
    .form-control {
        padding: 1rem 3rem 1rem 1rem;
        font-size: 1rem;
    }
    
    .login-btn {
        padding: 1rem;
        font-size: 1.05rem;
    }
}

/* Tablets Landscape (1024px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    .login-container {
        flex-direction: row;
    }
    
    .login-branding {
        flex: 0.6;
        padding: 2rem;
    }
    
    .login-form-section {
        flex: 0.4;
        padding: 2rem;
    }
    
    .brand-description h2 {
        font-size: 1.6rem;
    }
    
    .features-list {
        display: block;
    }
    
    .feature-item {
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mobile Landscape (568px - 768px) */
@media (min-width: 569px) and (max-width: 768px) and (orientation: landscape) {
    .login-container {
        flex-direction: row;
        height: 100vh;
    }
    
    .login-branding {
        flex: 0.5;
        min-height: 100vh;
        padding: 1.5rem;
    }
    
    .login-form-section {
        flex: 0.5;
        padding: 1.5rem;
        overflow-y: auto;
    }
    
    .brand-logo {
        margin-bottom: 1rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.8rem;
    }
    
    .brand-description h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .brand-description p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .features-list {
        display: none;
    }
    
    .login-card {
        padding: 1.5rem;
        max-width: none;
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .welcome-badge {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}

/* Tablets Portrait (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .login-branding {
        min-height: 40vh;
    }
    
    .login-form-section {
        min-height: 60vh;
    }
    
    .features-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .feature-item {
        flex: 1;
        min-width: 200px;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }
    
    .form-control {
        padding: 1.1rem 3.2rem 1.1rem 1.1rem;
        font-size: 1.05rem;
        border-radius: 14px;
    }
    
    .login-btn {
        padding: 1.1rem;
        font-size: 1.1rem;
        border-radius: 14px;
    }
    
    .floating-label {
        font-size: 0.95rem;
    }
    
    .floating-label.active {
        font-size: 0.85rem;
    }
}

/* Mobile Portrait (320px - 768px) */
@media (max-width: 768px) and (orientation: portrait) {
    body {
        background: linear-gradient(180deg, #1E3A5F 0%, #667eea 50%, #764ba2 100%);
    }
    
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .login-branding {
        min-height: 35vh;
        padding: 1.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .branding-content {
        width: 100%;
        max-width: 400px;
    }
    
    .brand-logo {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    .brand-name {
        font-size: 1.8rem;
    }
    
    .brand-description h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .brand-description p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .features-list {
        display: none;
    }
    
    .login-form-section {
        flex: 1;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
    
    .login-card {
        padding: 1.5rem;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        margin: 0;
        max-width: none;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .welcome-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-control {
        padding: 1rem 3rem 1rem 1rem;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 50px;
    }
    
    .input-icon {
        right: 1rem;
        font-size: 1.1rem;
    }
    
    .floating-label {
        right: 3rem;
        font-size: 0.9rem;
    }
    
    .floating-label.active {
        font-size: 0.8rem;
    }
    
    .password-toggle {
        left: 1rem;
        padding: 0.75rem;
        font-size: 1.1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .custom-checkbox {
        gap: 0.75rem;
    }
    
    .checkmark {
        width: 22px;
        height: 22px;
    }
    
    .checkbox-text {
        font-size: 0.95rem;
    }
    
    .forgot-password {
        font-size: 0.9rem;
        align-self: flex-end;
    }
    
    .login-btn {
        padding: 1rem;
        font-size: 1.05rem;
        border-radius: 12px;
        min-height: 50px;
        margin-bottom: 1rem;
    }
    
    .login-footer {
        margin-top: auto;
        padding-top: 1rem;
    }
    
    .security-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        top: 1rem;
        min-width: auto;
        border-radius: 10px;
        padding: 0.75rem;
    }
    
    .alert {
        padding: 0.75rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .login-branding {
        min-height: 30vh;
        padding: 1rem 0.75rem;
    }
    
    .brand-logo {
        gap: 0.5rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.6rem;
    }
    
    .brand-description h2 {
        font-size: 1.2rem;
    }
    
    .brand-description p {
        font-size: 0.9rem;
    }
    
    .login-form-section {
        padding: 0.75rem;
    }
    
    .login-card {
        padding: 1.25rem;
        border-radius: 16px 16px 0 0;
    }
    
    .welcome-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 0.9rem 2.8rem 0.9rem 0.9rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .input-icon {
        right: 0.9rem;
        font-size: 1rem;
    }
    
    .floating-label {
        right: 2.8rem;
        font-size: 0.85rem;
    }
    
    .floating-label.active {
        font-size: 0.75rem;
    }
    
    .password-toggle {
        left: 0.9rem;
        padding: 0.6rem;
        font-size: 1rem;
    }
    
    .checkmark {
        width: 20px;
        height: 20px;
    }
    
    .checkbox-text,
    .forgot-password {
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 0.9rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .security-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
}

/* Very Small Mobile (320px and below) */
@media (max-width: 320px) {
    .login-branding {
        min-height: 25vh;
        padding: 0.75rem 0.5rem;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .brand-description h2 {
        font-size: 1.1rem;
    }
    
    .login-card {
        padding: 1rem;
    }
    
    .login-title {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 0.8rem 2.6rem 0.8rem 0.8rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .login-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .form-control:focus {
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    .login-btn:active {
        transform: scale(0.98);
    }
    
    .password-toggle,
    .alert-close,
    .notification-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .custom-checkbox {
        min-height: 44px;
        padding: 0.5rem 0;
    }
    
    .forgot-password {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .login-card {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }
    
    .form-control {
        border-width: 1px;
    }
    
    .form-control:focus {
        box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
    }
}

/* Print Styles */
@media print {
    .background-animation,
    .floating-shapes,
    .login-branding {
        display: none !important;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-form-section {
        width: 100%;
        padding: 1rem;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
