/* Auth Container Styles */
.auth-container {
    min-height: 80vh;
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
}

.auth-page {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Auth Header with back button and blue background */
.auth-header {
     /* background: linear-gradient(135deg, #4F5FD9 0%, #3B4EC9 100%); */
     border-radius: 0 0 24px 24px;
     padding: 20px 24px 40px;
     margin: -20px -20px 0 -20px;
     position: relative;
     color: white;
     text-align: right;
     display: grid
 ;
     grid-template-columns: auto 1fr;
     gap: 16px;
}

.auth-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-back-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    color: white;
    backdrop-filter: blur(10px);
}

.auth-back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.auth-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

/* Logo Section */
.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-logo-text {
    font-size: 48px;
    font-weight: 700;
    color: #1F2937;
}

/* Auth Form */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

.auth-form-group {
    position: relative;
}

.auth-form-input {
    width: 100%;
    padding: 18px 56px 18px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    font-size: 16px;
    background: white;
    color: #1F2937;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

.auth-form-input::placeholder {
    color: #9CA3AF;
}

.auth-form-input:focus {
    outline: none;
    border-color: #4F5FD9;
    box-shadow: 0 0 0 3px rgba(79, 95, 217, 0.1);
}

.auth-form-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) !important;
    color: #9CA3AF;
    font-size: 20px;
    pointer-events: none;
}

/* Phone Input with Country Code */
.auth-phone-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-country-code {
    width: 80px;
    padding: 18px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    font-size: 16px;
    background: white;
    color: #1F2937;
    text-align: center;
    flex-shrink: 0;
}

.auth-phone-group .auth-form-input {
    flex: 1;
}

/* Password Toggle */
.auth-password-toggle {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle:hover {
    color: #6B7280;
}

/* Checkbox and Links */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
    font-size: 14px;
    color: #6B7280;
}

.auth-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    cursor: pointer;
}

.auth-checkbox-group a {
    color: #4F5FD9;
    text-decoration: none;
}

.auth-checkbox-group a:hover {
    text-decoration: underline;
}

.auth-forgot-link {
    display: block;
    text-align: center;
    color: #4F5FD9;
    text-decoration: none;
    font-size: 15px;
    margin-top: 8px;
}

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

/* Submit Button */
.auth-submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4F5FD9 0%, #3B4EC9 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 95, 217, 0.3);
}

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

/* Footer Link */
.auth-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 15px;
    color: #6B7280;
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dropdown Select */
.auth-form-select {
    width: 100%;
    padding: 18px 56px 18px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    font-size: 16px;
    background: white;
    color: #1F2937;
    text-align: right;
    direction: rtl;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
}

.auth-form-select:focus {
    outline: none;
    border-color: #4F5FD9;
    box-shadow: 0 0 0 3px rgba(79, 95, 217, 0.1);
}

/* Bottom Navigation */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 12px 20px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-items {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #6B7280;
    font-size: 11px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.nav-item.active {
    color: #3B5BE3;
}

.nav-icon {
    font-size: 22px;
}

.nav-item.add-btn {
    width: 50px !important;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B5BE3 0%, #2F4BC9 100%);
    color: white;
    margin-top: -28px;
    box-shadow: 0 4px 12px rgba(59, 91, 227, 0.4);
    flex-direction: row;
    justify-content: center;
    position: relative;
    bottom:-10px
}

.nav-item.add-btn .nav-icon {
    font-size: 24px;
    position: relative;
    top: -4px;
}

.nav-item.add-btn span {
    display: none;
}

.nav-item.add-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .auth-form-input,
    .auth-form-select {
        padding: 16px 48px 16px 18px;
        font-size: 15px;
    }

    .auth-submit-button {
        padding: 16px;
        font-size: 16px;
    }

    .auth-logo-text {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 15px;
    }

    .auth-header {
        padding: 15px 20px 30px;
        margin: -15px -15px 0 -15px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-form-input,
    .auth-form-select {
        padding: 14px 44px 14px 16px;
        font-size: 14px;
    }

    .auth-logo-text {
        font-size: 36px;
    }
}

