.auth-container {
    width: 100%;
    direction: rtl;
    text-align: right;
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background-color: #fafafa;
    box-sizing: border-box;
}

.auth-card-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: white;
    border-radius: 0.75rem;
    border-top: 4px solid #00bcd4;
    box-shadow: 0 6px 16px rgba(10, 35, 66, 0.12);
    overflow: hidden;
}

.auth-card-header {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(10, 35, 66, 0.05) 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

.auth-card-header-icon {
    width: 64px;
    height: 64px;
    background-color: #00bcd4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.75rem;
}

.auth-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a2342;
    margin: 0;
    padding: 0;
}

.auth-card-description {
    font-size: 0.95rem;
    color: #607d8b;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.auth-card-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #0a2342;
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
}

.form-label .required {
    color: #d32f2f;
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
    color: #0a2342;
    text-align: right;
    direction: rtl;
}

/* Input with icon wrapper */
.input-with-icon {
    position: relative;
    display: block;
    width: 100%;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00bcd4;
    pointer-events: none;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-with-icon .input-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.input-with-icon .form-control {
    padding-left: 2.75rem;
}

.input-with-icon .form-control:focus ~ .input-icon {
    color: #1565c0;
}

.form-control:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
    background-color: #fafbfc;
}

.form-control::placeholder {
    color: #b0bac1;
}

.form-control:disabled {
    background-color: #f5f5f5;
    color: #9e9e9e;
    cursor: not-allowed;
}

.input-group {
    position: relative;
    display: flex;
    gap: 0;
}

.input-group .input-with-icon {
    flex: 1;
    position: relative;
}

.input-group .form-control {
    border-radius: 0.75rem;
    margin: 0;
    padding-left: 5.5rem;
}

.input-group .input-with-icon .form-control {
    border-radius: 0.75rem;
    padding-left: 5.5rem;
}

.input-group .input-icon {
    left: 3.5rem;
}

.input-group-button {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #607d8b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 0.5rem;
}

.input-group-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.input-group-button:hover {
    background-color: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
}

.input-group-button:hover svg {
    color: #00bcd4;
}

.input-group-button:active {
    background-color: rgba(0, 188, 212, 0.15);
    transform: translateY(-50%) scale(0.95);
}

.btn-auth {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-auth-primary {
    background-color: #00bcd4;
    color: white;
    margin-bottom: 0.75rem;
}

.btn-auth-primary:hover {
    background-color: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 188, 212, 0.3);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-primary:disabled {
    background-color: #b0bac1;
    cursor: not-allowed;
    transform: none;
}

.btn-auth-link {
    background-color: transparent;
    color: #00bcd4;
    padding: 0.75rem 1rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-auth-link:hover {
    color: #0097a7;
}

.auth-message {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.auth-message-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.auth-message-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #e53935;
}

.auth-message-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #42a5f5;
}

.auth-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background-color: #fafbfc;
}

.auth-footer-text {
    font-size: 0.9rem;
    color: #607d8b;
    margin: 0;
}

.auth-footer-link {
    color: #00bcd4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer-link:hover {
    color: #0097a7;
}

.form-validation-error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.375rem;
}

.form-help-text {
    color: #607d8b;
    font-size: 0.85rem;
    margin-top: 0.375rem;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
        min-height: calc(100vh - 160px);
    }

    .auth-card-header {
        padding: 1.5rem;
    }

    .auth-card-body {
        padding: 1.5rem;
    }

    .auth-card-title {
        font-size: 1.5rem;
    }

    .auth-card-header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}
