/* 
 * IMPRUVER Common CSS - Centralized Styles
 * This file contains reusable styles for forms, cards, animations, and common UI elements
 */

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */

html {
    background: linear-gradient(135deg, #f1f7fc 0%, #e3eafc 100%);
}

body {
    font-size: 1.3rem;
    font-family: 'Roboto', Arial, sans-serif;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 50px; 
}

.page-fix {
    padding: 94px 0px 0px 0px;
}

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */

.auth-bg {
    min-height: 84vh;
    background: linear-gradient(135deg, #f1f7fc 0%, #e3eafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(21, 69, 164, 0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 400px;
    width: 100%;
    margin: 2rem auto;
    animation: fadeIn 1s ease;
}

.auth-logo {
    display: block;
    margin: 0 auto 1.5rem auto;
    max-width: 120px;
    animation: bounceIn 1s 0.5s cubic-bezier(.68,-0.55,.27,1.55) both;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.auth-title {
    color: #1545a4;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6f7a85;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-accent {
    color: #c53f3f;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form-group label {
    font-weight: 500;
    color: #1545a4;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #dfe7f1;
    background: #f9fbfd;
    color: #505e6c;
    height: 44px;
    font-size: 1.3rem;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.form-control:focus {
    border-color: #f85219;
    box-shadow: 0 0 0 2px rgba(248,82,25,0.15);
    background: #fff;
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
    background: #f85219;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover, 
.btn-primary:focus {
    background: #c53f3f;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    animation: buttonPulse 0.5s;
}

.btn-secondary {
    background: #6f7a85;
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: #5a6570;
    transform: translateY(-1px);
}

/* ==========================================================================
   NOTIFICATIONS & ALERTS
   ========================================================================== */

.notice {
    font-weight: bold;
    color: #ff0000;
    background-color: #f2dae1;
    border: 1px solid #b21f1f;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
    padding: 12px;
    margin-bottom: 1rem;
}

.notice.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.notice.warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.notice.info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #1545a4;
    font-weight: 500;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #f85219;
}

/* ==========================================================================
   INPUT GROUPS
   ========================================================================== */

.input-group-text {
    background: transparent;
    border: 1px solid #dfe7f1;
    border-left: none;
    cursor: pointer;
    color: #6f7a85;
    transition: color 0.2s;
}

.input-group-text:hover {
    color: #f85219;
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus + .input-group-append .input-group-text {
    border-color: #f85219;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
        margin: 1rem;
    }
    
    .container {
        margin-left: 0;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1.1rem;
    }
    
    .form-control {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    60% { 
        transform: scale(1.1); 
        opacity: 1; 
    }
    80% { 
        transform: scale(0.95); 
    }
    100% { 
        transform: scale(1); 
    }
}

@keyframes buttonPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(248,82,25,0.4); 
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(248,82,25,0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(248,82,25,0); 
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.w-100 {
    width: 100%;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   DARK MODE SUPPORT (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .dark-mode html {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .dark-mode .auth-card {
        background: #2d2d2d;
        color: #ffffff;
        box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
    }
    
    .dark-mode .form-control {
        background: #3a3a3a;
        border-color: #4a4a4a;
        color: #ffffff;
    }
    
    .dark-mode .form-control:focus {
        background: #4a4a4a;
        border-color: #f85219;
    }
}
