Skip to content

Commit 1cc11b6

Browse files
authored
Merge pull request #1307 from utmstack/backlog/fix_tfa_login
fix(tfa_login): standarized tfa login styles
2 parents 1066b5e + 9b92166 commit 1cc11b6

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

frontend/src/app/shared/components/auth/totp/totp.component.html

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="bg-image-utmstack"></div>
22

3-
<div *ngIf="!isVerified" class="container-fluid d-flex justify-content-center align-items-center min-vh-100 py-4">
4-
<div class="verification-card" style="max-width: 420px; width: 100%;">
3+
<div class="container-fluid d-flex justify-content-center align-items-center min-vh-100 py-4">
4+
<div class="verification-card" style="max-width: 420px; width: 100%;" >
55
<div class="card shadow border-0" style="border-radius: 8px; background-color: white;">
66
<div class="card-body p-4">
77

@@ -27,7 +27,7 @@ <h4 class="fw-semibold mb-2 text-dark">Two-Factor Authentication</h4>
2727
</div>
2828

2929
<!-- Method Info -->
30-
<div class="method-info mb-4 p-3 rounded"
30+
<div class="method-info mb-4 p-2 rounded"
3131
style="background-color: #f8fafc; border: 1px solid #e2e8f0;">
3232
<div class="d-flex align-items-center justify-content-center">
3333
<div class="method-icon me-3 d-flex align-items-center justify-content-center"
@@ -69,10 +69,6 @@ <h4 class="fw-semibold mb-2 text-dark">Two-Factor Authentication</h4>
6969
<!-- Code Input -->
7070
<div class="form-group mb-4">
7171
<div class="input-group">
72-
<span class="input-group-text bg-light border-end-0"
73-
style="border-color: #d1d5db; color: #6b7280;">
74-
<i class="icon-key"></i>
75-
</span>
7672
<input
7773
id="verificationCode"
7874
name="verificationCode"
@@ -86,6 +82,7 @@ <h4 class="fw-semibold mb-2 text-dark">Two-Factor Authentication</h4>
8682
autocomplete="one-time-code"
8783
placeholder="Enter 6-digit code"
8884
[class.is-invalid]="verifyForm.submitted && (verificationCode.length < 6 || verifyForm.invalid || hasError)"
85+
[disabled]="isVerifying || isVerified"
8986
style="border-color: #d1d5db; font-family: 'Courier New', monospace; letter-spacing: 2px; text-align: center; font-size: 16px!important; height: 45px!important;"
9087
/>
9188
</div>
@@ -133,12 +130,12 @@ <h4 class="fw-semibold mb-2 text-dark">Two-Factor Authentication</h4>
133130
</div>
134131

135132
<!-- Verify Button -->
136-
<div class="d-grid mb-3">
133+
<div class="d-grid mb-2">
137134
<button
138135
type="submit"
139-
class="btn btn-primary w-100"
140-
[disabled]="isVerifying || verificationCode.length < 6"
141-
style="height: 45px; border-radius: 6px; font-weight: 600; background: linear-gradient(135deg, #4f8ef7 0%, #7c3aed 100%); border: none; font-size: 14px;">
136+
class="btn utm-button utm-button-primary w-100"
137+
[disabled]="isVerifying || verificationCode.length < 6 || isVerified"
138+
style="height: 45px; border-radius: 6px; font-weight: 600; border: none; font-size: 14px;">
142139

143140
<ng-container *ngIf="isVerifying">
144141
<span class="spinner-border spinner-border-sm me-2"
@@ -164,18 +161,19 @@ <h4 class="fw-semibold mb-2 text-dark">Two-Factor Authentication</h4>
164161
</form>
165162

166163
<!-- Back to Login -->
167-
<div class="text-center mt-4" *ngIf="!isVerified">
164+
<div class="text-center" *ngIf="!isVerified">
168165
<button type="button"
169-
class="btn btn-link text-muted"
170-
style="font-size: 13px; text-decoration: none; padding: 8px 0;"
166+
class="btn btn-link text-muted text-lg"
167+
style="font-size: 0.9rem; text-decoration: none; "
168+
171169
(click)="backToLogin()">
172-
<i class="icon-arrow-left22 ml-2" style="font-size: 12px;"></i>
170+
<i class="icon-arrow-left22 ml-2" style="font-size: 0.9rem;"></i>
173171
Back to Login
174172
</button>
175173
</div>
176174

177175
<!-- Security Notice -->
178-
<div *ngIf="!isVerified" class="mt-4 p-3 rounded"
176+
<div *ngIf="!isVerified" class="mt-2 p-3 rounded"
179177
style="background-color: #fffbeb; border: 1px solid #fed7aa;">
180178
<div class="d-flex align-items-start">
181179
<i class="fas fa-shield-alt me-2 mt-1"

0 commit comments

Comments
 (0)