/* 
   VibeTuber - VTuber Animation & Rigging Services
   Authentication CSS File
*/

/* ===== Variables ===== */
:root {
    --primary-color: #FF6B00;
    --primary-light: #FF8800; 
    --primary-dark: #E65100;
    --secondary-color: #212121;
    --accent-color: #FF3D00;
    --light-color: #F5F5F5;
    --dark-color: #121212;
    --gray-color: #757575;
    --error-color: #dc3545;
    --success-color: #198754;
    --warning-color: #ffc107;
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF3D00 100%);
    --gradient-secondary: linear-gradient(135deg, #FF3D00 0%, #E65100 100%);
    --box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
    --box-shadow-hover: 0 15px 35px rgba(255, 107, 0, 0.2);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --border-radius: 16px;
}

/* ===== General Styles ===== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-color);
    background-color: #FAFAFA;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F8F9FA;
    position: relative;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    font-weight: 800;
    z-index: 1;
}

/* ===== Auth Layout ===== */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 5;
}

.auth-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.auth-col-left, 
.auth-col-right {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px;
}

.auth-brand {
    margin-bottom: 30px;
}

.auth-brand a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--dark-color);
    letter-spacing: -1px;
    display: inline-block;
}

.auth-brand a:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.auth-image {
    margin-bottom: 30px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.auth-image img {
    max-width: 50%;
    height: auto;
}

.auth-welcome {
    padding: 0 30px;
}

.auth-welcome h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.auth-welcome p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.auth-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.auth-header p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
}

.auth-footer p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* ===== Form Elements ===== */
.form-floating > .form-control, 
.form-floating > .form-select {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    height: calc(3.5rem + 2px);
    padding: 1.5rem 1rem;
    font-size: 1rem;
    background-color: #F8F9FA;
    transition: var(--transition);
}

.form-floating > textarea.form-control {
    height: 150px;
}

.form-floating > .form-control:focus, 
.form-floating > .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: white;
}

.form-floating > label {
    padding: 1rem;
    opacity: 0.8;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    opacity: 1;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.95rem;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: var(--error-color);
    display: none;
}

.is-invalid {
    border-color: var(--error-color) !important;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ===== Password Field ===== */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: -15px;
}

.strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: var(--transition);
}

.strength-text {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.strength-info {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Password strength colors */
.strength-very-weak { width: 20%; background-color: var(--error-color); }
.strength-weak { width: 40%; background-color: var(--error-color); }
.strength-fair { width: 60%; background-color: var(--warning-color); }
.strength-good { width: 80%; background-color: var(--primary-color); }
.strength-strong { width: 100%; background-color: var(--success-color); }

/* ===== Buttons ===== */
.btn {
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
    transform: translateY(-3px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    transform: translateY(-3px);
}

/* ===== Social Login ===== */
.social-login {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.social-login p {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    background: white;
    color: var(--dark-color);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn.twitter {
    color: #1DA1F2;
}

.social-btn.google:hover {
    background: #DB4437;
    color: white;
}

.social-btn.facebook:hover {
    background: #4267B2;
    color: white;
}

.social-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}

/* ===== Forgot Password Link ===== */
.forgot-link {
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Success Icon ===== */
.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* ===== Decorative Shapes ===== */
.auth-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.5;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    border-radius: 41% 59% 47% 53% / 62% 32% 68% 38%;
    animation: float 8s ease-in-out infinite, rotate 20s linear infinite;
}

.shape-2 {
    bottom: 15%;
    right: 8%;
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    border-radius: 61% 39% 52% 48% / 44% 59% 41% 56%;
    animation: float 10s ease-in-out infinite, rotate 15s linear infinite reverse;
}

.shape-3 {
    top: 60%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    border-radius: 42% 58% 35% 65% / 59% 29% 71% 41%;
    animation: float 12s ease-in-out infinite, rotate 25s linear infinite;
}

.shape-4 {
    top: 20%;
    right: 15%;
    width: 180px;
    height: 180px;
    background: var(--primary-dark);
    border-radius: 38% 62% 64% 36% / 42% 35% 65% 58%;
    animation: float 9s ease-in-out infinite, rotate 30s linear infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== Alert Styles ===== */
.alert {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border: none;
    position: relative;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
    .auth-col-left, 
    .auth-col-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .auth-col-left {
        display: none;
    }

    .auth-card {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .auth-card {
        padding: 25px;
    }
    
    .auth-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 20px;
    }
    
    .form-floating > .form-control, 
    .form-floating > .form-select {
        height: calc(3.2rem + 2px);
    }
    
    .social-buttons {
        gap: 10px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
    }
}

/* ===== Custom Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.8s ease forwards;
}

/* Add a slight delay to child elements for a staggered animation effect */
.auth-header {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

.auth-form {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.auth-footer {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

/* Create animated background */
.auth-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 107, 0, 0.1) 100%);
    z-index: -1;
}