
/*
*= require_self
*/

/* Base resets */
* {
    box-sizing: border-box;
}

.devise-links {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.devise-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.devise-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ==== Alert & Errors ==== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.alert-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
    color: inherit;
}

.alert-list {
    margin: 0;
    padding-left: 1.25rem;
}

.alert-list li {
    margin-bottom: 0.25rem;
}

/* ==== Main Content & Spacing ==== */
.page-body {
    flex: 1;
    width: 100%;
    max-width: 768px; /* Restrict width for better form readability */
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.page-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2.5rem;
    letter-spacing: -0.025em;
}

/* ==== Cards Configuration ==== */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.03);
}

/* ==== Forms & Inputs ==== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.hint-text {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.hint-block {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.2s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* ==== Button Components ==== */
.btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background-color: #337ab7;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #286090;
}

.btn-primary {
    /* Inherits from .btn */
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
    width: auto; /* For account cancellation specifically */
    padding: 0.625rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* ==== Cancel Section Constraints ==== */
.cancel-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cancel-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.cancel-info p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ==== Dashboard Back Link ==== */
.return-link {
    text-align: center;
    margin-top: 1.5rem;
}

.return-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.return-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .cancel-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .cancel-action {
        width: 100%;
    }
    
    .cancel-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==== Google & Social Login buttons ==== */
.social-login-form {
    margin-bottom: 1.5rem;
}

.btn-google {
    background-color: #ffffff;
    color: #475569;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    width: 100%;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}



.btn-google::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4285F4 0%, #4285F4 25%, #EA4335 25%, #EA4335 50%, #FBBC05 50%, #FBBC05 75%, #34A853 75%, #34A853 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.btn-google:hover {
    background-color: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.07);
}

.btn-google:hover::before {
    transform: scaleX(1);
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.login-divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}
