/* style.css - Common CSS for all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    #background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 50%, #1a1a3e 100%);
    background: #000000;
    min-height: 100vh;
    color: #fff;
}

/* Mobile First Container */
.container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Top Action Bar - Common for all pages */
.top-actions {
    padding: 16px 16px 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo-area {
    flex-shrink: 0;
    width: auto;        /* 70% remove */
    max-width: 180px;   /* limit width */
}

.logo img {
    width: 100%;
    height: auto;       /* important */
    max-width: 100%;    
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo-area {
        max-width: 120px;  /* mobile এ ছোট হবে */
    }
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #FFD700;
    font-size: 1.2rem;
}

.btn-group-top {
    display: flex;
    gap: 8px;
}

.btn-top {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-login-top {
    background: transparent;
    border: 1.5px solid #FFD700;
    color: #FFD700;
}

.btn-login-top:hover, .btn-login-top:active {
    transform: scale(0.96);
    background: rgba(255, 215, 0, 0.1);
}

.btn-register-top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #0a0a1a;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-register-top:hover, .btn-register-top:active {
    transform: scale(0.96);
}

/* Back Button */
.back-btn {
    background: rgba(255, 215, 0, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #FFD700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:active {
    transform: scale(0.95);
    background: #FFD700;
    color: #0a0a1a;
}

/* Form Styles */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 30px 24px;
    margin: 20px 16px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-image {
    text-align: center;
    margin-bottom: 25px;
}

.form-image img {
    max-width: 120px;
    height: auto;
}

.form-image i {
    font-size: 70px;
    color: #FFD700;
}

.form-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-group label i {
    margin-right: 8px;
    color: #FFD700;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Phone number input with country code */
.phone-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-code {
    width: 80px;
    flex-shrink: 0;
}

.phone-number {
    flex: 1;
}

/* Forgot password link */
.forgot-link {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-link a {
    color: #FFD700;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0a0a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit i {
    margin-right: 8px;
}

/* Register link */
.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.register-link p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.register-link a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Error message */
.error-message {
    #background: rgba(220, 53, 69, 0.15);
    #border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    color: #ff6b6b;
	font-size: 30px;
    text-align: center;
}

.error-message.show {
    display: block;
}

/* Success message */
.success-message {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    color: #6bff8b;
    font-size: 13px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Loading state */
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .form-container {
        padding: 25px 20px;
        margin: 15px 16px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .btn-top {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}