/* login.css - AllSat Communications Login Layout Styles */

/* Base body styles */
body {
    background: linear-gradient(135deg, #0a1929 0%, #1e3a8a 50%, #1e40af 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Login container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Login card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

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

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0) saturate(100%);
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-title {
    color: #0a1929;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0a1929 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Login form */
.login-form {
    width: 100%;
}

/* Form controls */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* File input styling */
input[type="file"].form-control {
    padding: 0.5rem;
    cursor: pointer;
}

input[type="file"].form-control::-webkit-file-upload-button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

input[type="file"].form-control::-webkit-file-upload-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Form labels */
.form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* Buttons */
.btn-login {
    background: linear-gradient(135deg, #0a1929 0%, #1e3a8a 50%, #1e40af 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-login:hover::before {
    left: 100%;
}

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

/* Outline button */
.btn-outline {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
    width: 100%;
    cursor: pointer;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

/* Clear button */
.btn-clear {
    color: #6b7280;
    background: transparent;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
    width: 100%;
    cursor: pointer;
}

.btn-clear:hover {
    color: #3b82f6;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Dividers */
.hr-between-buttons {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
    opacity: 0.6;
}

/* Flash messages and alerts */
.flash-message {
    margin-bottom: 1.5rem;
}

.alert, .message {
    border-radius: 12px;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success, .message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-error, .message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-info, .message.info {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border-left: 4px solid #3b82f6;
}

.alert-warning, .message.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

/* Utility classes */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6b7280 !important;
}

.h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Row and column spacing */
.row .col-md-6 {
    margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-card {
        max-width: 100%;
        margin: 1rem;
        padding: 2.5rem 2rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-logo {
        width: 100px;
    }
    
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem 0.5rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .btn-login, .btn-outline, .btn-clear {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.form-control:focus,
.btn-login:focus,
.btn-outline:focus,
.btn-clear:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}
