/* ===========================================
   Custom Modern Login Page - Madrastak
   Matching Site's Flat & Clean Design
============================================== */

/* Login Section */
.singUp-area {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4fc 100%);
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding: 130px 0 60px 0;
}

/* Login Card Container */
.singUp-wrap {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 32px 36px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.singUp-wrap:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
    border-color: #d0d0d0;
}

/* Title */
.singUp-wrap .title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.singUp-wrap > p {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Google Login Button */
.account__social {
    margin-bottom: 16px;
}

.account__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.account__social-btn:hover {
    background: #f9fafb;
    border-color: #1a73e8;
    color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15) !important;
}

.account__social-btn img {
    width: 22px;
    height: 22px;
}

/* Divider */
.account__divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
}

.account__divider::before,
.account__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.account__divider span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Styles */
.account__form .form-grp {
    margin-bottom: 16px;
}

.account__form .form-grp label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.account__form .form-grp label code {
    color: #ef4444;
    font-size: 13px;
}

.account__form .form-grp input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #1a1a1a;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
}

.account__form .form-grp input::placeholder {
    color: #9ca3af;
}

.account__form .form-grp input:focus {
    background: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1) !important;
}

/* Remember Me & Forgot Password */
.account__check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.account__check-remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account__check-remember .form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account__check-remember .form-check-input:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.account__check-remember .form-check-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.account__check-forgot a {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.account__check-forgot a:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* Submit Button */
.account__form .btn-two {
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account__form .btn-two:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 115, 232, 0.3) !important;
}

.account__form .btn-two img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Sign Up Link */
.account__switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.account__switch p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.account__switch a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.account__switch a:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* reCAPTCHA Container */
.account__form .g-recaptcha {
    display: flex;
    justify-content: center;
}

/* Validation Errors */
.account__form .text-danger,
.account__form .invalid-feedback {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .singUp-area {
        padding: 80px 0 40px 0;
    }

    .singUp-wrap {
        padding: 24px 20px;
        border-radius: 16px;
        margin: 0 16px;
    }

    .singUp-wrap .title {
        font-size: 20px;
    }

    .singUp-wrap > p {
        font-size: 13px;
    }

    .account__form .form-grp input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .account__form .btn-two {
        padding: 12px 20px;
        font-size: 14px;
    }

    .account__check {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* RTL Support */
[dir="rtl"] .account__social-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .account__check-remember {
    flex-direction: row-reverse;
}

[dir="rtl"] .account__switch a {
    margin-left: 0;
    margin-right: 6px;
}

[dir="rtl"] .account__form .btn-two img {
    transform: scaleX(-1);
}

/* Hide Breadcrumb for cleaner look (optional) */
.singUp-area + .breadcrumb-area,
.breadcrumb-area + .singUp-area {
    margin-top: 0;
}

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

.singUp-wrap {
    animation: fadeInUp 0.5s ease-out;
}

/* ===========================================
   Instructor Registration Page Styles
============================================== */

/* Platform Info Box */
.platform-info-box {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(26, 115, 232, 0.04) 100%);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.platform-info-box h5 {
    color: #1a73e8;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-info-box h5 i {
    font-size: 18px;
}

.platform-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-info-box ul li {
    color: #4b5563;
    font-size: 14px;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.platform-info-box ul li i {
    color: #1a73e8;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Form Select Styles */
.account__form .form-grp select,
.account__form .form-grp .form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #1a1a1a;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

[dir="rtl"] .account__form .form-grp select,
[dir="rtl"] .account__form .form-grp .form-select {
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 40px;
}

.account__form .form-grp select:focus,
.account__form .form-grp .form-select:focus {
    background-color: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1) !important;
}

/* Terms Agreement */
.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-agreement input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    margin-top: 2px !important;
    padding: 0 !important;
    border: 2px solid #d1d5db !important;
    border-radius: 6px !important;
    cursor: pointer;
    accent-color: #1a73e8;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    flex-shrink: 0;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.terms-agreement input[type="checkbox"]:checked {
    background-color: #1a73e8;
    border-color: #1a73e8 !important;
}

.terms-agreement .form-check-label {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}

/* Row Gutter for Registration Form */
.row.gutter-20 {
    margin-left: -10px;
    margin-right: -10px;
}

.row.gutter-20 > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* Responsive for Instructor Register */
@media (max-width: 768px) {
    .platform-info-box {
        padding: 16px 18px;
    }

    .platform-info-box h5 {
        font-size: 15px;
    }

    .platform-info-box ul li {
        font-size: 13px;
    }

    .row.gutter-20 > [class*="col-md-6"] {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .terms-agreement {
        flex-direction: row;
        align-items: flex-start;
    }

    .terms-agreement .form-check-label {
        font-size: 13px;
    }
}
