/* Authentication Pages Styling */

/* Layout */
.login-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1;
    min-width: 300px;
}

/* Form Elements */
.auth-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-password {
    font-size: 14px;
    color: #4CAF50;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.form-footer a {
    color: #4CAF50;
    text-decoration: none;
}

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

.form-intro {
    color: #666;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px !important;
    flex: 1;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    z-index: 2;
}

.toggle-password:hover {
    color: #4CAF50;
}

.form-error {
    color: #e53935;
    font-size: 14px;
    margin-top: 5px;
}

/* Radio and Checkbox Styles */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.radio-custom, .checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-option input, .checkbox-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4CAF50;
}

.checkbox-option input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4CAF50;
    font-size: 14px;
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

/* Social Media Inputs */
.social-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-input {
    position: relative;
}

.social-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.social-input input {
    padding-left: 40px !important;
}

/* Pricing Options */
.pricing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.pricing-option {
    flex: 1;
    min-width: 250px;
}

.pricing-option input {
    position: absolute;
    opacity: 0;
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    height: 100%;
    min-height: 350px;
}

.plan-card.premium {
    border-color: #4CAF50;
}

.pricing-option input:checked + .plan-card {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.plan-card h3 {
    margin-top: 0;
    color: #333;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin: 10px 0;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.plan-features li i {
    margin-right: 8px;
    color: #4CAF50;
}

.plan-features li.disabled {
    color: #999;
}

.plan-features li.disabled i {
    color: #999;
}

.popular-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Payment Section */
.payment-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.payment-info h3 {
    margin-top: 0;
    color: #333;
}

#card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-top: 15px;
}

#card-errors {
    color: #e53935;
    font-size: 14px;
    margin-top: 8px;
}

/* Terms Group */
.terms-group {
    margin-top: 30px;
}

.terms-group a {
    color: #4CAF50;
    text-decoration: none;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

/* Forgot Password Modal */
.forgot-password-modal h3 {
    margin-top: 0;
    color: #333;
}

.forgot-success {
    display: none;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}

.forgot-success i {
    margin-right: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .form-container {
        width: 100%;
    }
    
    .pricing-options {
        flex-direction: column;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Readonly styles */
.readonly {
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Claim banner styles */
.claim-banner {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
    color: #0d47a1;
}

.claim-banner i {
    margin-right: 8px;
}