/* 
 * FFGroup SMS — Frontend Auth UI
 * Accent: #0079C1
 */

.ffg-auth-wrapper {
    max-width: 900px;
    margin: -40px auto 15px auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ffg-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 40px;
    max-width: 550px;
    margin: 0 auto 40px;
    border: 1px solid #eaeaea;
}

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

/* Header icon — unified circle style */
.ffg-auth-icon {
    width: 64px;
    height: 64px;
    background: #eef4fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #0079C1;
}

.ffg-auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    border: none;
    padding: 0;
}

.ffg-auth-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Form Elements */
.ffg-auth-card .form-row {
    margin-bottom: 16px;
}

.ffg-auth-card p {
    margin-bottom: 16px !important;
}

.ffg-auth-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0 !important;
}

.ffg-auth-card input[type="text"],
.ffg-auth-card input[type="email"],
.ffg-auth-card input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    margin: 0 !important;
}

.ffg-auth-card input[type="text"]:focus,
.ffg-auth-card input[type="email"]:focus,
.ffg-auth-card input[type="password"]:focus {
    border-color: #0079C1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 121, 193, 0.1);
}

/* Actions row (Remember me & Lost Password) */
.ffg-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.ffg-auth-actions label {
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.ffg-auth-actions a {
    color: #0079C1;
    text-decoration: none;
}

.ffg-auth-actions a:hover {
    text-decoration: underline;
}

/* Primary Button — unified gradient */
.ffg-btn-primary {
    width: 100% !important;
    background: linear-gradient(135deg, #0079C1 0%, #005fa3 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s !important;
    box-shadow: 0 4px 16px rgba(0,121,193,0.25) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.ffg-btn-primary:hover,
.ffg-btn-primary:focus {
    background: linear-gradient(135deg, #0079C1 0%, #005fa3 100%) !important;
    color: #fff !important;
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 24px rgba(0,121,193,0.30) !important;
}

.ffg-btn-primary svg {
    flex-shrink: 0 !important;
}

.ffcp-new-client-wrap {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.ffcp-new-client-wrap a {
    color: #0079C1;
    text-decoration: none;
    font-weight: 600;
}

.ffcp-new-client-wrap a:hover {
    text-decoration: underline;
}

.ffg-btn-outline {
    width: 100%;
    background: #fff;
    color: #0079C1;
    border: 1.5px solid #0079C1;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.ffg-btn-outline:hover {
    background: #f0f8ff;
}

.ffg-submit-row {
    margin-bottom: 0 !important;
}

/* Divider */
.ffg-auth-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.ffg-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #eaeaea;
}

.ffg-auth-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #888;
    font-size: 14px;
}

/* Footer note */
.ffg-auth-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

/* Features Block */
.ffg-auth-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.ffg-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.ffg-feature-item svg {
    flex-shrink: 0;
    color: #0079C1;
    stroke: #0079C1;
}

.ffg-feature-text h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.ffg-feature-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ffg-auth-wrapper {
        margin: -20px auto 15px auto !important;
    }
    .ffg-auth-features {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    .ffg-auth-card {
        margin: 0 20px 30px;
        padding: 25px;
        border-radius: 12px;
    }
    .ffg-auth-header h2 {
        font-size: 22px;
    }
}
