/*:root {
    --primary: #FF9F1C;
    --secondary: #2D936C;
    --dark: #0A0F0D;
    --light: #F5F5F5;
    --accent: #E71D36;
    --text: #1E1E24;
    --gray: #8C8C8C;
    --light-gray: #F8F8F8;
    --italy-green: #008C45;
    --italy-white: #F4F5F0;
    --italy-red: #CD212A;
    --seller: #4A6FA5;
    --rider: #F4A259;
    --admin: #9B5DE5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 16px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}
*/
.login-container {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Italian Theme Header */
/*.italy-header {
    background: linear-gradient(135deg, var(--italy-green) 0%, var(--secondary) 100%);
    color: white;
    padding: 15px 0;
    font-size: 0.9rem;
    text-align: center;
}

.italy-flag {
    display: flex;
    height: 5px;
    margin-top: 10px;
}

.italy-flag div {
    flex: 1;
}

.italy-flag .green {
    background-color: var(--italy-green);
}

.italy-flag .white {
    background-color: var(--italy-white);
}

.italy-flag .red {
    background-color: var(--italy-red);
}*/

/* Auth Container */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-box {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 50px 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.auth-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--italy-green), var(--primary), var(--italy-red));
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-logo-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.auth-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
}

.auth-logo-text span {
    color: var(--primary);
}

.auth-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.auth-role-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background-color: var(--light-gray);
    padding: 5px;
    border-radius: 12px;
}

.role-option {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.role-option.active {
    background-color: white;
    box-shadow: var(--shadow);
}

.role-option.seller {
    color: var(--seller);
}

.role-option.rider {
    color: var(--rider);
}

.role-option.admin {
    color: var(--admin);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-with-icon .form-input {
    padding-left: 55px;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--gray);
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Buttons */
.auth-button {
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-button:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 30px;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-link:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--gray);
}

.divider:before, .divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.divider span {
    padding: 0 20px;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid #eee;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn.google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.social-btn.facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

/* Verification Page */
.verification-container {
    text-align: center;
}

.verification-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(45, 147, 108, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: var(--secondary);
}

.verification-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.verification-message {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.verification-code {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.code-input {
    width: 60px;
    height: 70px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 2rem;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    background-color: var(--light-gray);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1);
    background-color: white;
}

.resend-link {
    display: block;
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.95rem;
}

.resend-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Success/Error Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: rgba(45, 147, 108, 0.1);
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
}

.alert-error {
    background-color: rgba(231, 29, 54, 0.1);
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

.alert-info {
    background-color: rgba(255, 159, 28, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* Password Reset */
.reset-instructions {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.reset-instructions p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 5px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.strength-weak .strength-fill {
    background-color: var(--accent);
    width: 33%;
}

.strength-medium .strength-fill {
    background-color: var(--primary);
    width: 66%;
}

.strength-strong .strength-fill {
    background-color: var(--secondary);
    width: 100%;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #eee;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    color: var(--gray);
    transition: var(--transition);
}

.step-active .step-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.step-completed .step-icon {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.step-active .step-label {
    color: var(--dark);
    font-weight: 500;
}

/* Footer */
.auth-footer {
    text-align: center;
    padding: 30px 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-box {
        padding: 40px 25px;
    }

    .auth-logo-text {
        font-size: 1.8rem;
    }

    .social-login {
        flex-direction: column;
    }

    .verification-code {
        gap: 8px;
    }

    .code-input {
        width: 50px;
        height: 60px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .verification-code {
        gap: 5px;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 1.6rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box {
    animation: fadeIn 0.6s ease-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

.auth-top-bar {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 16px;
}

.auth-back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 40px;
}

.auth-back-btn i {
    font-size: 16px;
}

.auth-back-btn:hover {
    text-decoration: underline;
}

.continue-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: var(--light-bg);
    margin-bottom: 20px;
}

.user-avatar i {
    font-size: 48px;
    color: var(--primary);
}

.user-info h3 {
    margin: 0;
    font-size: 16px;
}

.user-info p {
    margin: 2px 0;
    font-size: 13px;
    color: var(--gray);
}

.user-role {
    font-size: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
}

.auth-link.danger {
    color: #e74c3c;
}

