/* Environment-Friendly Professional Auth Page Styles */
:root {
    --primary-green: #2d5f3f;
    --secondary-green: #4a8b5c;
    --accent-green: #6fb88a;
    --light-green: #e8f5e9;
    --dark-green: #1a3d2a;
    --earth-brown: #8b7355;
    --sky-blue: #87ceeb;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --error-red: #e74c3c;
    --success-green: #27ae60;
    --shadow: rgba(45, 95, 63, 0.1);
    --shadow-hover: rgba(45, 95, 63, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Image and Title */
.auth-left {
    flex: 1;
    background:
        linear-gradient(135deg, rgba(45, 95, 63, 0.75) 0%, rgba(74, 139, 92, 0.75) 100%),
        url('../images/nature-background.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(111, 184, 138, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 139, 92, 0.2) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.auth-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 600px;
}

.auth-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.auth-logo svg {
    width: 60px;
    height: 60px;
    fill: var(--white);
}

.auth-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text {
    text-align: left;
    font-size: 1rem;
}

/* Right Side - Forms */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 2rem;
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
    /* padding: 2rem; */
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--light-green);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(45, 95, 63, 0.1);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: 0 2px 8px var(--shadow);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: #fee;
    color: var(--error-red);
    border-left: 4px solid var(--error-red);
}

.alert-success {
    background: #efe;
    color: var(--success-green);
    border-left: 4px solid var(--success-green);
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert li {
    margin: 0.25rem 0;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(74, 139, 92, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: var(--error-red);
}

.form-input.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideDown 0.2s ease;
}

/* Captcha Row */
.captcha-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    height: 56px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.captcha-refresh {
    padding: 1.6rem 1.5rem;
    background: var(--light-green);
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
}

.captcha-refresh:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: rotate(180deg);
}

/* Options Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-green);
}

.form-link {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    box-shadow: 0 6px 20px var(--shadow-hover);
    transform: translateY(-2px);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Decorative Elements */
.leaf-decoration {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

.leaf-decoration.leaf-1 {
    top: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    transform: rotate(45deg);
}

.leaf-decoration.leaf-2 {
    bottom: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    transform: rotate(-30deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        min-height: 40vh;
    }

    .auth-title {
        font-size: 2.5rem;
    }

    .auth-features {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .feature-item {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .auth-left {
        min-height: 30vh;
        padding: 2rem 1rem;
    }

    .auth-left-content {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .auth-features {
        display: none;
    }

    .auth-right {
        padding: 1.5rem;
    }

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

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .captcha-group {
        flex-wrap: wrap;
    }

    .captcha-input {
        flex: 1 1 100%;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 1.5rem;
    }

    .auth-logo {
        width: 80px;
        height: 80px;
    }

    .auth-logo svg {
        width: 40px;
        height: 40px;
    }

    .feature-item {
        flex: 1 1 100%;
    }
}

/* Loading State */
.submit-btn.loading {
    pointer-events: none;
    position: relative;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
    display: none;
}

.password-strength.show {
    display: block;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--error-red);
}

.password-strength-bar.medium {
    width: 66%;
    background: #f39c12;
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--success-green);
}