/* Clean Professional Admin Authentication CSS */

/* CSS Variables */
:root {
    --primary-color: #003A66;
    --primary-light: #0A4D80;
    --secondary-color: #E02454;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --success: #28a745;
    --danger: #dc3545;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #003A66, #0A4D80);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Clean Background Elements */
.animated-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -50px;
    animation: float 15s infinite ease-in-out;
}

.element-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: -30px;
    animation: float 18s infinite ease-in-out reverse;
}

.element-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 10%;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Clean Main Container */
.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* Clean Form Card */
.login-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-container {
    background: transparent;
    padding: 0;
}

/* Clean Logo Container */
.logo-container {
    width: 180px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

/* Clean Form Headers */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Clean Form Groups */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

/* Clean Form Controls */
.form-control {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 16px 12px 45px;
    color: var(--primary-color);
    font-size: 1rem;
    height: 50px;
    transition: var(--transition);
    width: 100%;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 58, 102, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1.1rem;
    z-index: 2;
    transition: var(--transition);
}

.form-group:focus-within .input-icon {
    color: var(--primary-color);
}

/* Clean Buttons */
.btn-login {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 58, 102, 0.3);
    cursor: pointer;
}

.btn-login:hover {
    background: linear-gradient(135deg, #002a4d, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 58, 102, 0.4);
    color: var(--white);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Clean Copyright */
.copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.copyright a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Toast styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Clean Back Button */
.back-home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.back-tooltip {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Clean Responsive Design */
@media (max-width: 767px) {
    .login-wrapper {
        margin: 15px;
        padding: 30px 25px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 10px 14px 10px 40px;
        height: 48px;
    }
    
    .input-icon {
        left: 12px;
        font-size: 1rem;
    }
    
    .back-home-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
    
    .back-tooltip {
        display: none;
    }
    
    .copyright {
        position: relative;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        margin: 10px;
        padding: 25px 20px;
    }
    
    .logo-container {
        width: 150px;
        height: 80px;
    }
}

/* Clean Links */
.register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-link:hover {
    color: #d12836;
    text-decoration: underline;
}
