/* winseven.css - Windows 7 Inspired Style for Nahid */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header Style */
.z_login_header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.z_login_header img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.z_login_header img:hover {
    transform: scale(1.05);
}

/* Main Container */
.z_login_cnt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 50px 20px;
}

/* Login Box */
.z_login_box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

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

/* Login/Register Buttons */
.z_login_but_1, .z_login_but_2 {
    display: inline-block;
    width: 50%;
    padding: 18px 0;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.z_login_but_1 {
    background: #667eea;
    color: white;
    border-bottom: 3px solid #5a67d8;
}

.z_login_but_2 {
    background: #f7fafc;
    color: #4a5568;
    border-bottom: 3px solid #e2e8f0;
}

.z_login_but_1:hover {
    background: #5a67d8;
    border-bottom-color: #4c51bf;
}

.z_login_but_2:hover {
    background: #edf2f7;
    border-bottom-color: #cbd5e0;
}

.z_login_but_1.active {
    background: #5a67d8;
    border-bottom-color: #4c51bf;
}

/* Form Body */
.z_login_bdy {
    padding: 40px 30px 20px 30px;
}

.z_login_bdy table {
    width: 100%;
    border-collapse: collapse;
}

.z_login_bdy td {
    padding: 10px 0;
}

/* Input Fields */
.login_username, .login_password {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #f8fafc;
}

.login_username:focus, .login_password:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login_username.error, .login_password.error {
    border-color: #fc8181;
    background: #fff5f5;
}

/* Placeholder Style */
::placeholder {
    color: #a0aec0;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #a0aec0;
}

::-ms-input-placeholder {
    color: #a0aec0;
}

/* Submit Section */
.z_login_submit {
    padding: 0 30px 40px 30px;
    text-align: center;
}

.login_subm_bt {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login_subm_bt:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.login_subm_bt:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* Forgot Password Link */
forgot {
    display: block;
    margin-top: 20px;
    font-size: 14px;
}

forgot a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

forgot a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Error Message Bar */
.login_err_bar {
    background: #fed7d7;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    text-align: left;
    border: 1px solid #fc8181;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.login_err_bar ul {
    margin: 5px 0 0 20px;
}

.login_err_bar li {
    margin: 3px 0;
}

/* Success Message (if needed) */
.login_success_bar {
    background: #c6f6d5;
    color: #22543d;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    text-align: left;
    border: 1px solid #9ae6b4;
}

/* Footer Style */
.z_footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .z_login_cnt {
        padding: 80px 15px 30px 15px;
    }
    
    .z_login_box {
        max-width: 100%;
    }
    
    .z_login_bdy {
        padding: 30px 20px 15px 20px;
    }
    
    .z_login_submit {
        padding: 0 20px 30px 20px;
    }
    
    .login_username, .login_password {
        padding: 12px 15px;
    }
    
    .z_login_but_1, .z_login_but_2 {
        padding: 15px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .z_login_header {
        padding: 15px;
    }
    
    .z_login_header img {
        max-height: 40px;
    }
    
    .z_login_bdy {
        padding: 25px 15px 10px 15px;
    }
    
    .z_login_submit {
        padding: 0 15px 25px 15px;
    }
    
    .login_subm_bt {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    forgot {
        font-size: 12px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .z_login_header,
    .z_login_but_1,
    .z_login_but_2,
    .login_subm_bt,
    forgot {
        display: none;
    }
    
    .z_login_box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}