/* ==========================================================
   Gurjar Book — Card Style Design System
   --------------------------------------------------------
   Loaded AFTER assets/bootstrap/styles/style.css.
   Provides the gb-* classes used to re-skin login.blade.php,
   signup.blade.php and createnewuserauth.blade.php into the
   white-card / saffron-icon visual language, while every
   <input>, <select>, name=, id=, and onclick= in those blade
   files stays completely untouched.
   ========================================================== */

body.gb-auth-body {
    background: linear-gradient(135deg, #7C5CE0 0%, #5A36C0 50%, #3F2680 100%);
    min-height: 100vh;
    padding: 30px 16px;
    margin: 0;
}

.gb-header {
    text-align: center;
    margin-bottom: 24px;
}

.gb-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EFEAFC 0%, #E5DEFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #5A36C0;
    margin: 0 auto 16px;
}

.gb-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1F2937;
}

.gb-title .gb-badge {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.gb-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.gb-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gb-feature-box {
    background: linear-gradient(135deg, #F7F4FE 0%, #EFEAFC 100%);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #6D4BD8;
}

.gb-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px;
}

.gb-feature-title i {
    margin-right: 6px;
    color: #6D4BD8;
}

.gb-feature-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.gb-form-group {
    margin-bottom: 18px;
}

.gb-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.gb-input,
.gb-card select.gb-input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #1F2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.gb-input:focus {
    outline: none;
    border-color: #6D4BD8;
    box-shadow: 0 0 0 3px rgba(109, 75, 216, 0.1);
}

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

.gb-input-wrap {
    position: relative;
}

.gb-input-wrap .gb-toggle-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
    font-size: 17px;
    z-index: 3;
    pointer-events: auto;
    padding: 8px;
    line-height: 1;
    user-select: none;
}
/* clicks land on the span, not the inner <i>/<svg> (FontAwesome may swap it) */
.gb-input-wrap .gb-toggle-icon i,
.gb-input-wrap .gb-toggle-icon svg { pointer-events: none; }

/* room for the show/hide-password eye icon so text never sits under it */
.gb-input-wrap .gb-input { padding-right: 44px; }
.gb-input-wrap .gb-toggle-icon:hover { color: #6D4BD8; }

/* keep the demo look (white inputs + purple button) winning over bootstrap base styles */
.gb-card .gb-input { background: #fff; color: #1F2937; }
.gb-card .gb-btn-primary { background: linear-gradient(135deg, #6D4BD8 0%, #5A36C0 100%); color: #fff; }

.gb-helper-text {
    font-size: 12px;
    color: #10B981;
    margin-top: 6px;
    min-height: 14px;
}

.gb-helper-text.error,
.gb-helper-text.msg-err {
    color: #DC2626;
}

.gb-helper-text.msg-ok {
    color: #10B981;
}

.gb-helper-text.msg-wait {
    color: #9CA3AF;
}

.gb-mobile-chip {
    background: linear-gradient(135deg, #F7F4FE 0%, #EFEAFC 100%);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border: 1px solid #D9CCF7;
}

.gb-mobile-chip-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.gb-mobile-chip-icon {
    font-size: 18px;
    color: #6D4BD8;
}

.gb-mobile-chip-text {
    display: flex;
    flex-direction: column;
}

.gb-mobile-chip-label {
    font-size: 10px;
    color: #3F2680;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.gb-mobile-chip-number {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
}

.gb-link {
    color: #6D4BD8;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

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

.gb-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1F2937;
}

.gb-form-check input {
    accent-color: #6D4BD8;
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin: 0;
}

.gb-btn-primary {
    width: 100%;
    padding: 14px 22px;
    background: linear-gradient(135deg, #6D4BD8 0%, #5A36C0 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(109, 75, 216, 0.3);
}

.gb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 75, 216, 0.4);
}

.gb-btn-primary:active {
    transform: translateY(0);
}

.gb-btn-secondary {
    flex: 1;
    padding: 12px;
    background: #fff;
    color: #1F2937;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.gb-btn-row {
    display: flex;
    gap: 12px;
}

.gb-footer-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.gb-footer-link p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.gb-footer-link a {
    color: #6D4BD8;
    text-decoration: none;
    font-weight: 600;
}

.gb-progress-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.gb-progress-step {
    flex: 1;
    height: 3px;
    background: #E5E7EB;
    border-radius: 2px;
}

.gb-progress-step.active {
    background: linear-gradient(90deg, #6D4BD8 0%, #5A36C0 100%);
}

.gb-strength-bars {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.gb-strength-bars > div {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
}

.gb-row-2col {
    display: flex;
    gap: 10px;
}

.gb-row-2col .gb-form-group {
    flex: 1;
}

.gb-row-2col .gb-form-group.gb-col-narrow {
    flex: 0 0 110px;
}

.gb-error-banner {
    background: #FEF2F2;
    border-left: 4px solid #DC2626;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #991B1B;
}

.gb-success-banner {
    background: #ECFDF5;
    border-left: 4px solid #10B981;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #065F46;
}

@media (max-width: 480px) {
    .gb-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

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