/* ============================================ */
/* Authentication Pages Styles - ArtisanInc */
/* ============================================ */

/* Auth Page Background */
.auth-page-full {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark overlay for better text readability */
.auth-page-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 36, 24, 0.85) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Auth Container */
.auth-container-simple {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Auth Card */
.auth-card-simple {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 45px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-wide {
    max-width: 580px;
}

/* Auth Header */
.auth-header-simple {
    text-align: center;
    margin-bottom: 30px;
    
}

.auth-header-simple h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c2418;
}

.auth-header-simple p {
    color: #2c2418;
    font-size: 0.95rem;
}

/* Logo */
.auth-logo-center {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo-center img {
    height: 50px;
    width: auto;
    display: inline-block;
}

/* Form Styles */
.auth-form-simple {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group-simple {
    margin-bottom: 20px;
}

.form-group-simple label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2c2418;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #d47b3a;
    z-index: 1;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 50px 14px 46px;
    border: 1.5px solid #ede4db;
    border-radius: 14px;
    font-size: 1rem;
    background: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.input-with-icon input:focus {
    outline: none;
    border-color: #d47b3a;
    box-shadow: 0 0 0 4px rgba(212, 123, 58, 0.12);
    transform: translateY(-1px);
}

.input-with-icon input::placeholder {
    color: #b8a89a;
}

/* Toggle Password */
.toggle-password {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b5f52;
    width: 44px;
    height: 44px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toggle-password i {
    font-size: 1.3rem;
    pointer-events: none;
    color: #6b5f52;
}

.toggle-password:hover {
    color: #d47b3a;
    transform: translateY(-50%) scale(1.15);
}

.toggle-password:hover i {
    color: #d47b3a;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c2418;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #d47b3a;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.checkbox-label:hover input[type="checkbox"] {
    transform: scale(1.1);
}

.forgot-link {
    color: #d47b3a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d47b3a;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.forgot-link:hover::after {
    width: 100%;
}

.forgot-link:hover {
    color: #b55f2a;
}

/* Password Requirements */
.password-requirements-simple {
    background: #faf6f2;
    padding: 16px 18px;
    border-radius: 14px;
    margin: 20px 0;
    border: 1px solid #ede4db;
}

.password-requirements-simple p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c2418;
}

.password-requirements-simple ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.password-requirements-simple li {
    font-size: 0.8rem;
    color: #6b5f52;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements-simple li i {
    font-size: 0.45rem;
    color: #ccc;
}

.password-requirements-simple li.valid {
    color: #2e7d32;
}

.password-requirements-simple li.valid i {
    color: #2e7d32;
}

/* Buttons */
.btn-primary {
    background: #d47b3a;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(212, 123, 58, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-primary::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: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #b55f2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 123, 58, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 123, 58, 0.3);
    transition: all 0.1s ease;
}

.btn-block {
    width: 100%;
}

.btn-outline-primary {
    background: transparent;
    color: #d47b3a;
    border: 1.5px solid #d47b3a;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #d47b3a;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 123, 58, 0.25);
}

.btn-outline-primary:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 28px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ede4db;
}

.auth-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 0 15px;
    color: #6b5f52;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 1.5px solid #ede4db;
    background: white;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #2c2418;
    position: relative;
    overflow: hidden;
}

.btn-social::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 123, 58, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-social:hover::before {
    width: 300px;
    height: 300px;
}

.btn-social:hover {
    background: #faf6f2;
    border-color: #d47b3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.btn-social:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.btn-social .fa-google {
    color: #4285f4;
}

.btn-social .fa-facebook-f {
    color: #1877f2;
}

/* Auth Footer */
.auth-footer-simple {
    text-align: center;
    font-size: 0.95rem;
    color: #6b5f52;
}

.auth-footer-simple a {
    color: #d47b3a;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-footer-simple a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d47b3a;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-footer-simple a:hover::after {
    width: 100%;
}

.auth-footer-simple a:hover {
    color: #b55f2a;
}

.auth-footer-secondary {
    text-align: center;
    margin-top: 18px;
}

.auth-footer-secondary a {
    color: #6b5f52;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-footer-secondary a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d47b3a;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-footer-secondary a:hover::after {
    width: 100%;
}

.auth-footer-secondary a:hover {
    color: #d47b3a;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fdeded;
    color: #d32f2f;
    border: 1px solid #f5c2c2;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert i {
    font-size: 1.1rem;
}

/* Success Message Box */
.success-message-box {
    text-align: center;
    padding: 20px;
}

.success-message-box i {
    font-size: 3rem;
    color: #2e7d32;
    margin-bottom: 15px;
}

.success-message-box h3 {
    color: #2c2418;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.success-message-box p {
    color: #6b5f52;
    margin-bottom: 10px;
}

.success-message-box .help-text {
    font-size: 0.85rem;
    margin-top: 15px;
    opacity: 0.8;
}

.success-message-box .help-text a {
    color: #2e7d32;
    font-weight: 600;
}

/* Back to Home Link */
.back-to-home {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 3;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.back-to-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.back-to-home:hover::before {
    left: 100%;
}

.back-to-home:hover {
    background: rgba(212, 123, 58, 0.8);
    transform: translateX(-5px);
    color: white;
}

/* Auth Side Content */
.auth-side-content {
    flex: 1;
    max-width: 450px;
    color: white;
}

.auth-side-card {
    padding: 40px;
}

.auth-side-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.auth-side-card p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.auth-icon-large {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-features,
.auth-features-light {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.feature-item,
.feature-item-light {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item i,
.feature-item-light i {
    color: #f5b342;
    font-size: 1.1rem;
}

.feature-item-light {
    color: white;
}

/* ============================================ */
/* Smooth Sliding Account Type Selector */
/* ============================================ */

.account-type-slider {
    margin-bottom: 30px;
    width: 100%;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #faf6f2;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid #ede4db;
    cursor: pointer;
    user-select: none;
}

.slider-background {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: white;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.slider-container.artisan .slider-background {
    left: calc(50% + 0px);
}

.slider-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 40px;
    color: #6b5f52;
    font-weight: 500;
    transition: color 0.3s ease;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.slider-option i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.slider-option.active {
    color: #d47b3a;
}

.slider-option.active i {
    transform: scale(1.1);
}

.slider-option:hover {
    color: #d47b3a;
}

.slider-option:hover i {
    transform: scale(1.05);
}

.slider-option .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 123, 58, 0.2);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
    z-index: 3;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Artisan Agreement Section */
.artisan-agreement-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                margin 0.3s ease;
    margin: 0;
}

.artisan-agreement-section.show {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 20px;
}

/* ============================================ */
/* Entrance Animations */
/* ============================================ */

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Apply Animations */
.back-to-home {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease-out 0.2s forwards;
}

.auth-card-simple {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease-out 0.3s forwards;
}

.auth-side-content {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.7s ease-out 0.5s forwards;
}

.auth-logo-center {
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.5s ease-out 0.1s forwards;
}

.auth-header-simple h1 {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeDown 0.5s ease-out 0.2s forwards;
}

.auth-header-simple p {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.3s forwards;
}

.auth-form-simple .form-group-simple {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.auth-form-simple .form-group-simple:nth-child(1) { animation-delay: 0.4s; }
.auth-form-simple .form-group-simple:nth-child(2) { animation-delay: 0.5s; }
.auth-form-simple .form-group-simple:nth-child(3) { animation-delay: 0.6s; }
.auth-form-simple .form-group-simple:nth-child(4) { animation-delay: 0.7s; }
.auth-form-simple .form-group-simple:nth-child(5) { animation-delay: 0.8s; }

.form-options {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.7s forwards;
}

.auth-form-simple .btn-primary {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out 0.8s forwards;
}

.auth-divider {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.9s forwards;
}

.social-login .btn-social {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.social-login .btn-social:first-child { animation-delay: 1.0s; }
.social-login .btn-social:last-child { animation-delay: 1.1s; }

.auth-footer-simple {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.2s forwards;
}

.auth-footer-secondary {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.3s forwards;
}

.account-type-slider {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

.password-requirements-simple {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out 0.6s forwards;
}

.alert {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeDown 0.4s ease-out 0.1s forwards;
}

.auth-icon-large {
    opacity: 0;
    transform: scale(0);
    animation: popIn 0.6s ease-out 0.6s forwards;
}

.auth-side-card h2 {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease-out 0.7s forwards;
}

.auth-side-card p {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease-out 0.8s forwards;
}

.auth-features .feature-item,
.auth-features-light .feature-item-light {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.5s ease-out forwards;
}

.auth-features .feature-item:nth-child(1),
.auth-features-light .feature-item-light:nth-child(1) { animation-delay: 0.9s; }
.auth-features .feature-item:nth-child(2),
.auth-features-light .feature-item-light:nth-child(2) { animation-delay: 1.0s; }
.auth-features .feature-item:nth-child(3),
.auth-features-light .feature-item-light:nth-child(3) { animation-delay: 1.1s; }

.success-message-box {
    opacity: 0;
    transform: scale(0.9);
    animation: popIn 0.5s ease-out 0.2s forwards;
}

.checkbox-label {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.6s forwards;
}

.forgot-link {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.6s forwards;
}

/* ============================================ */
/* Responsive */
/* ============================================ */

@media (max-width: 968px) {
    .auth-container-simple {
        flex-direction: column;
    }
    
    .auth-side-content {
        max-width: 480px;
        text-align: center;
    }
    
    .auth-icon-large {
        margin-left: auto;
        margin-right: auto;
    }
    
    .auth-side-content {
        animation: fadeInUp 0.7s ease-out 0.3s forwards;
        transform: translateY(30px);
    }
}

@media (max-width: 640px) {
    .auth-card-simple {
        padding: 30px 20px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .password-requirements-simple ul {
        grid-template-columns: 1fr;
    }
    
    .back-to-home {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .slider-option {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .slider-option i {
        font-size: 0.9rem;
    }
}

/* ============================================ */
/* Accessibility */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}