
/*
*= require_self
*/

.container {
  max-width: 400px;
  margin: 50px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}

.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;
}

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

.devise-links {
  margin-top: 20px;
  text-align: center;
}

.devise-links a {
  color: #337ab7;
  text-decoration: none;
}

.devise-links a:hover {
  text-decoration: underline;
}

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

/* ==== 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-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3);
}

/* ==== 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;
}
