/* APStract Auth Styles */

.apstract-login-form {
    max-width: 480px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.apstract-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Alert Messages */
.apstract-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 20px 20px 0;
    border-radius: 8px;
    font-size: 14px;
}

.apstract-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.apstract-alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Tab Navigation */
.apstract-tab-nav {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    margin: 0;
}

.apstract-tab-link {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apstract-tab-link:hover {
    background: #f8f9fa;
    color: #495057;
}

.apstract-tab-link.is-active {
    color: #3f6ad8;
    border-bottom-color: #3f6ad8;
    background: #f8f9fa;
}

.apstract-tab-icon {
    font-size: 18px;
}

/* Tab Content */
.apstract-tab-content {
    padding: 30px 20px;
}

.apstract-tab-pane {
    display: none;
}

.apstract-tab-pane.is-active {
    display: block;
}

.apstract-tab-pane h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

.apstract-message {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* Forms */
.apstract-auth-form {
    margin: 0;
}

.apstract-form-row {
    margin-bottom: 20px;
}

.apstract-form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.apstract-form-row input[type="email"],
.apstract-form-row input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.apstract-form-row input:focus {
    outline: none;
    border-color: #3f6ad8;
    box-shadow: 0 0 0 3px rgba(63, 106, 216, 0.1);
}

.apstract-form-row small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

/* OTP Code Inputs */
.apstract-code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.apstract-code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ced4da;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.apstract-code-digit:focus {
    outline: none;
    border-color: #3f6ad8;
    box-shadow: 0 0 0 3px rgba(63, 106, 216, 0.1);
}

/* Timer */
.apstract-timer {
    text-align: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6c757d;
}

/* Buttons */
.apstract-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apstract-btn-primary {
    background: #3f6ad8;
    color: #ffffff;
}

.apstract-btn-primary:hover {
    background: #2d5bc6;
}

.apstract-btn-primary:disabled {
    background: #ced4da;
    cursor: not-allowed;
}

/* Resend Link */
.apstract-resend {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6c757d;
}

.apstract-link {
    color: #3f6ad8;
    text-decoration: none;
    font-weight: 500;
}

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

/* Loading State */
.apstract-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
    .apstract-login-form {
        margin: 20px 16px;
    }

    .apstract-tab-label {
        display: none;
    }

    .apstract-code-digit {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .apstract-code-inputs {
        gap: 8px;
    }
}
