* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: ltr;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d, #734625, #442415);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}


@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Login Container */
.login-container {
    background: rgba(45, 45, 45, 0.95);
    border-radius: 20px;
    border: 1px solid #404040;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    animation: slideIn 0.8s ease-out;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #734625, #8b5530, #442415);
    border-radius: 20px 20px 0 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #734625, #8b5530);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(115, 70, 37, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.logo img {
    width: 100%;
    border-radius: 50%;
}

.logo-fallback {
    font-size: 32px;
    color: white;
    font-weight: bold;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.welcome-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #734625, #8b5530);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
    font-size: 14px;
}

.input-container {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: #1a1a1a;
    border: 2px solid #404040;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #734625;
    box-shadow: 0 0 20px rgba(115, 70, 37, 0.3);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus+.input-icon {
    color: #734625;
    display: none;
}

.input-icon {
    display: none;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #734625, #8b5530);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.login-btn::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: all 0.6s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(115, 70, 37, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn i {
    margin-left: 10px;
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #404040;
}

.divider span {
    background: rgba(45, 45, 45, 0.95);
    padding: 0 20px;
    color: #999;
    font-size: 14px;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #404040;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    background: #5865F2;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.social-btn i {
    font-size: 18px;
}

/* Additional Options */
.additional-options {
    text-align: center;
    margin-top: 25px;
}

.forgot-password {
    color: #734625;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #8b5530;
    text-decoration: underline;
}

.register-link {
    margin-top: 15px;
    color: #ccc;
    font-size: 14px;
}

.register-link a {
    color: #734625;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    color: #8b5530;
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.footer {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    color: #bdbdbd;
    font-size: 14px
}

.footer a {
    color: #9aa5ff;
    text-decoration: none
}

.footer a:hover {
    text-decoration: underline
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        margin: 20px;
        padding: 30px 25px;
        max-width: none;
    }

    .welcome-text {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        padding: 25px 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .welcome-text {
        font-size: 22px;
    }
}