/**
 * Global Styles
 *
 * @format
 */

:root {
    --primary-dark: #0c1e62;
    --primary-accent: #fdf505;
    --text-main: #333;
    --text-light: #fff;
    --black: #191717;
    --green: #4caf50;
    --red: #f44336;
    --blue: #2196f3;
    --yellow: #ffeb3b;
    --gray-light: #f5f5f5;
    --gray-dark: #9e9e9e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f5f7;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Glassmorphism Container */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(13, 30, 98, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(241, 187, 0, 0.1) 0%,
        rgba(12, 30, 98, 0.3) 70%
    );
    animation: rotate-gradient 20s linear infinite;
    z-index: -1;
}

@keyframes rotate-gradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Header Styles */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header img {
    height: 50px;
    margin-bottom: 16px;
}

.login-header h1 {
    color: var(--black);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.login-header p {
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(241, 187, 0, 0.2);
}

/* Password Visibility Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 42px;
    cursor: pointer;
    color: var(--primary-dark);
}

/* Remember Me & Forgot Password */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    color: var(--text-light);
    font-size: 14px;
}

.forgot-password {
    color: var(--primary-accent);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-accent);
    box-shadow: 0 4px 12px rgba(241, 187, 0, 0.3);
    transform: translateY(-2px);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.divider-text {
    padding: 0 12px;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Social Icons */
.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--primary-accent);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Registration Link */
.register-link {
    text-align: center;
    margin-top: 24px;
}

.register-link p {
    color: var(--text-light);
    font-size: 14px;
}

.register-link a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: all 0.2s;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .form-control {
        padding: 12px 14px;
    }
}
