/* Base Styles */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: #f0f5ff;
    font-family: 'Arial', sans-serif;
    overflow-y: auto;
}

/* Auth Container */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 70px);
    margin-top: 0;
    transform: translateY(70px);
    background: #f0f5ff;
    position: relative;
    z-index: 1;
}

/* Image Section */
.auth-image {
    background: url('../assets/images/stadium.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.auth-image.register {
    background: url('../assets/images/court.jpg') center/cover no-repeat;
}

.image-overlay {
    position: relative;
    z-index: 2;
    color: #fff;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.image-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.image-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Form Section */
.auth-form-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
}

.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top:50px;
}

.form-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: #1a73e8;
    font-weight: 600;
}

.form-header p {
    color: #5f6368;
    font-size: 0.9rem;
}

/* Form Styles */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 0.6rem;
    padding-right: 2.5rem;
    background: #f8faff;
    border: 2px solid #e8eeff;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 42px;
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: #a0aec0;
}

.input-group input:focus {
    outline: none;
    border-color: #1a73e8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.input-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1a73e8;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    cursor: pointer;
}

.forgot-password {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Button Styles */
.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #1a73e8;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: #1557b0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

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

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px);
}

/* Social Auth */
.social-auth {
    margin-top: 1rem;
    text-align: center;
    position: relative;
}

.social-auth p {
    color: #5f6368;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-auth p::before,
.social-auth p::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8eeff;
    margin: 0 1rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e8eeff;
    background: #ffffff;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f8faff;
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn.google i {
    color: #1a73e8;  /* Google blue color */
}

.social-btn.apple i {
    color: #000000;
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #888;
}

.auth-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e8eeff;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background: #f8faff;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #1a73e8;
    background: #ffffff;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #1a73e8;
    border-color: #1a73e8;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
}

.label-text {
    color: #5f6368;
    font-size: 0.9rem;
}

.label-text a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.label-text a:hover {
    text-decoration: underline;
}

/* Error States */
.input-group.error input {
    border-color: #d93025;
    background: #fff7f7;
}

.input-group.error i {
    color: #d93025;
}

.error-message {
    color: #d93025;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75rem;
}

/* Loading State */
.btn-primary.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-primary.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-image {
        display: none;
    }

    .auth-form-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        padding: 1.5rem;
    }

    .form-header h1 {
        font-size: 1.75rem;
    }

    .social-buttons {
        flex-wrap: wrap;
    }
}